PERL TUTORIALS - Perl Environment
Perl Environment
ADVERTISEMENTS
Running Perl
Option | Description |
---|---|
-d[:debugger] | Run program under debugger |
-Idirectory | Specify @INC/#include directory |
-T | Enable tainting checks |
-t | Enable tainting warnings |
-U | Allow unsafe operations |
-w | Enable many useful warnings |
-W | Enable all warnings |
-X | Disable all warnings |
-e program | run Perl script sent in as program |
file | run Perl script from a given file |
ADVERTISEMENTS
$perl -vADVERTISEMENTS
This is perl 5, version 16, subversion 2 (v5.16.2) built for i686-linux Copyright 1987-2012, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.Unix & Linux Installation
$tar -xzf perl-5.x.y.tar.gz $cd perl-5.x.y $./Configure -de $make $make test $make installMacintosh Installation
$tar -xzf perl-5.x.y.tar.gz $cd perl-5.x.y $./Configure -de $make $make test $make installRunning Perl
$perl -e <perl code> # Unix/Linux or C:>perl -e <perl code> # Windows/DOS
$perl script.pl # Unix/Linux or C:>perl script.pl # Windows/DOS