pl - A Perl Shell for Unix

Please visit - the SourceForge site includes a new version, more documentation, and supersedes this page.

Download pl

pl is intended to be an interactive Perl shell with all the capabilities of a normal shell, but accepting commands in Perl code. While still incomplete, pl has some interesting features the Perl debugger (perl -d) and psh does not have.

Particularly, multi-line commands are supported in most cases, for example:

#! sub add {
]}? return $_[0] + $_[1]
]}? }
The Perl debugger misbehaves as follows:
main::(-e:1):   0
  DB<1> sub add {
Missing right curly or square bracket at (eval 4)[/usr/local/lib/perl5/5.8.0/] line 4, at end of line
syntax error at (eval 4)[/usr/local/lib/perl5/5.8.0/] line 4, at EOF


pl does not have this problem, but current versions of Perl prevent pl from supporting multi-line code in all cases.

Valid HTML 4.0?

Modified Sun Mar 25 08:48:47 2007 generated Sun Mar 25 08:56:33 2007