Michael Vincent
and 1 contributors

NAME

PLSH - Perl Shell

SYNOPSIS

 plsh [options] [args]

DESCRIPTION

Creates an interactive Perl shell.

OPTIONS

 -E                   Exit after -e commands complete.
 --exit

 -e                   Valid Perl to execute.  Multiple valid Perl  
 --execute            statements (semicolon-separated) and multiple 
                      -e allowed.

 -I dir               Specify directory to prepend @INC.  Multiple 
 --Include            -I allowed.

 -l                   Require "my" for all variables.
 --lexical            Requires Lexical::Persistence, fails if not found.

 -P package           Package to use as namespace.  Will:
 --package              use `package';
                      before any -e arguments.

 -p prompt            Prompt for the shell.
 --prompt

 -s file              Session command log file.
 --session
 --help               Print Options and Arguments.
 --man                Print complete man page.
 --versions           Print Modules, Perl, OS, Program info.

ORDER

  1. Prepend any -I paths to @INC.

  2. Set -P package. If provided, set -e to "use <package>".

  3. Add any additional -e arguments to -e.

  4. If -E, add "exit;" to end of -e.

EXAMPLES

The following two examples accomplish the same thing.

Command Line

 plsh.pl -e "print join ' ', @ARGV;" -E hello world

Interactive

 C:\> plsh.pl
 Perl> print "hello world";
 Perl> exit;

SEE ALSO

App::PerlShell

LICENSE

This software is released under the same terms as Perl itself. If you don't know what that means visit http://perl.com/.

AUTHOR

Copyright (c) 2015 Michael Vincent

http://www.VinsWorld.com

All rights reserved