Shell::Base 0.05 review

Download
by rbytes.net on

Shell::Base is a generic class to build line-oriented command interpreters. SYNOPSIS package My::Shell; use Shell::Base;

License: Perl Artistic License
File size: 25K
Developer: Darren Chamberlain
0 stars award from rbytes.net

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