perl
TLDR
Run Perl script
$ perl [script.pl]
Execute one-liner$ perl -e 'print "Hello\n"'
In-place edit$ perl -i -pe 's/old/new/g' [file]
Print with autosplit$ perl -ane 'print $F[0]' [file]
Check syntax$ perl -c [script.pl]
Enable warnings$ perl -w [script.pl]
SYNOPSIS
perl [options] [program] [arguments]
DESCRIPTION
perl is the Perl interpreter. Practical Extraction and Report Language.
The language excels at text processing. Powerful regex support.
perl runs Perl programs.
PARAMETERS
PROGRAM
Perl script file.-e CODE
Execute code.-n
Loop over input.-p
Loop and print.-i EXT
In-place edit.-w
Enable warnings.-c
Syntax check only.
CAVEATS
Perl 5 primarily. Use strict/warnings. CPAN for modules.
HISTORY
Perl was created by Larry Wall in 1987 for text manipulation.


