From a discussion on Hacker News:
One particulary mnemonic collection of switches is-plane
:perl -plane 'my $script'
.-n
and-p
are mutually exclusive, but as-p
overrides-n
, it is easier to just remove-p
if necessary.
Few other users in another discussion there mentioned -E
-n
-l
-p
options especially useful.
Is there anything really cool about -plane
or -Enlp
? Are they really somewhat a "Holy Grail" of running Perl scripts from the command line, and why?
submitted by /u/Impressive-West-5839
[link] [comments]