Term::ReadLine::Perl - A pure Perl implementation GNU Readline
use Term::ReadLine::Perl;
$term = new Term::ReadLine::Perl 'ProgramName';
while ( defined ($_ = $term->readline('prompt>')) ) {
...
}
This is a implementation of the GNU Readline/History Library written entirely in Perl.
GNU Readline reads lines from an interactive terminal with emacs or vi editing capabilities. It provides as mechanism for saving history of previous input.
This package typically used in command-line interfaces and REPLs (Read, Eval, Print Loops).
To install this module type:
perl Makefile.PL
make
make test # for interactive testing or
AUTOMATED_TESTING=1 make test
make install # might need sudo make install
For interactive testing try redirect STDIN and/or STDOUT.
See the contents of README