Menu

PERL TUTORIALS - Perl Environment

Perl Environment

ADVERTISEMENTS

Running Perl

OptionDescription
-d[:debugger]Run program under debugger
-IdirectorySpecify @INC/#include directory
-TEnable tainting checks
-tEnable tainting warnings
-UAllow unsafe operations
-wEnable many useful warnings
-WEnable all warnings
-XDisable all warnings
-e programrun Perl script sent in as program
filerun Perl script from a given file

ADVERTISEMENTS

$perl -v

ADVERTISEMENTS

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 install

Macintosh Installation

$tar -xzf perl-5.x.y.tar.gz
$cd perl-5.x.y
$./Configure -de
$make
$make test
$make install

Running 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