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.