in reply to
-s option
As stated in
perldoc:/perlrun
(well worth the read for great switches like
-e
,
-n
,
-p
,
-a
, and others), it provides some really basic parsing of command-line options.
perl -sle 'print $foo' -- -foo=bar # prints: bar
[download]
Another (and much more flexible) option for command-line option parsing is
Getopt::Long
.
Comment on
Re: -s option
Select
or
Download
Code
In Section
Seekers of Perl Wisdom