Help for this page

Select Code to Download


  1. or download this
    $ perl -s -foo=bar -e 'print $foo,$/ if $foo'
    Unrecognized switch: -foo=bar  (-h will show valid options).
    ...
    
    # at last!
    
  2. or download this
    $ perl -se 'print "$foo\n" if $foo' -- -foo
    1
    
    $ perl -se 'print "$foo\n" if $foo' -- -foo=bar
    bar