NAME

Perlbug::Cmd - Command line interface to perlbug database.

DESCRIPTION

Command line interface to perlbug database.

SYNOPSIS

use Perlbug::Cmd;

my $o_perlbug = Perlbug::Cmd->new;    

my $result = $o_perlbug->cmd; 

print $result; # == 1 (hopefully :-)

METHODS

new

Create new Perlbug::Cmd object:

my $pb = Perlbug::Cmd->new();
cmd

Call the command line interface:

$o_perlbug->cmd; 
process

Processes the command given, gets and truncates the results, calls scroll

scroll

Scroll the available data if necessary.

history

History mechanism accessor

doh

Wraps help message

doH

History of commands

parse_commands

Parses the subject and body of the email message into a command hash, hash is placed in $pb->result, returns ref to said hash:

my $h_ref = $pb->parse_commands($sbj, $bdy);
process_commands

Steps through hash created by parse_commands, and executes each outstanding command, so long as the command has been allowed via switches. Returns valid == 1 or error message.

my $outcome = $pb->process_commands($ref_to_hashed_commands);

AUTHOR

Richard Foley perlbug@rfi.net 2000