Command Line Options



next up previous
Next: References Up: Previous: Predefined Variables

Command Line Options

Perl has a set of command-line switches. Here are a few of the most useful ones.

-c
Check the syntax of a Perl script but do not execute it.
-e
Specify Perl code on the command line.
-w
Warn the programmer about any questionable uses of variables. These include variable used only once and variables which are referenced before being assigned. New Perl programmers are advised to check their scripts with perl -c -w script.pl.