Shell::Base 0.05 review
DownloadShell::Base is a generic class to build line-oriented command interpreters. SYNOPSIS package My::Shell; use Shell::Base;
|
|
Shell::Base is a generic class to build line-oriented command interpreters.
SYNOPSIS
package My::Shell;
use Shell::Base;
use base qw(Shell::Base);
sub do_greeting {
return "Hello!"
}
Shell::Base is a base class designed for building command line programs. It defines a number of useful defaults, simplifies adding commands and help, and integrates well with Term::ReadLine.
After writing several REP (Read-Eval-Print) loops in Perl, I found myself wishing for something a little more convenient than starting with:
while(1) {
my $line = ;
last unless defined $line;
chomp $line;
if ($line =~ /^...
Requirements:
Perl
Shell::Base 0.05 search tags