- or download this
$ perl -wl -e 'print "This is line 1";' \
-e 'print "This is line 2";' \
-e 'print "This is line 3";' \
-e 'print "This is line 4";' \
-e 'print "This is line 5";'
- or download this
while(<>) { print ; }
- or download this
$ perl -MO=Deparse -pe '1'
LINE: while (defined($_ = <ARGV>)) {
...
print $_;
}
-e syntax OK
- or download this
split;
- or download this
perl -01512 -e
- or download this
$ perl -01512 -e 1
Unrecognized switch: -2 (-h will show valid options).
$