Chapter 2. Command-Line Options
- --
Stops processing options.
-0[ octnum ](That’s the number zero.) Designates an initial octal value for the record separator
$/.See also-lbelow.-aTurns on autosplit mode when used with
-nor-p.Splits to@F.-cChecks syntax but does not execute. It does run BEGIN and CHECK blocks.
-CUses native wide-character system APIs, if supported by the system.
-d[ :module ]Runs the script under the indicated module. Default module is the Perl debugger. Use
-de 0to start the debugger without a script.-DflagsSets debugging flags.
-ecommandlineMay be used to enter a single line of script. Multiple
-ecommands may be given to build up a multiline script.-FpatSpecifies a pattern on which to split if
-ais in effect.-hPrints the Perl usage summary. Does not execute.
-i[ ext ]Activates in-place editing for files processed by the
<>construct.-IdirThe directory is prepended to the search path for Perl modules,
@INC.Combined with-P, -Ialso tells the C preprocessor where to look for include files.-l[ octnum ](That’s the letter el.) Enables automatic line ending processing, e.g.,
-l013.-m[-]module [=arg [,arg... ] ]See
-Mon the facing page.-M[-]module [=arg [,arg... ] ]Does a use module before executing the script. With
-does a no module instead.-nAssumes an input loop around the script. Lines are not printed.
-pAssumes an input loop around the script. Lines are printed.
-PRuns the C preprocessor on the script before compilation by Perl.
-sInterprets ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access