in reply to
-s switch with -e
perl -se 'print $foo' -- -foo=bar
Works, without '--' the switch is sent to perl instead of your script.
Comment on
Re: -s switch with -e
Download
Code
In Section
Seekers of Perl Wisdom