App::perlsh - a simple perl REPL based on Lexical::Persistence
App::perlsh
Lexical::Persistence
use App::perlsh; App::perlsh->run
This module implements an application that provides a simple perl REPL ("read-execute-print loop"); that is, an interactive shell-like program that repeatedly reads perl code from input, executes it, and prints the result in a readable manner.
Being based on Lexical::Persistence allows it to accumulate variables along the session, letting the user reuse them in later lines.
$ perlsh eval: my $one = 1; '1' eval: my $two = 2; '2' eval: $one + $two '3' eval:
Paul Evans <leonerd@leonerd.org.uk>
To install App::perlsh, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::perlsh
CPAN shell
perl -MCPAN -e shell install App::perlsh
For more information on module installation, please visit the detailed CPAN module installation guide.