Help for this page

Select Code to Download


  1. or download this
    $ perl -le 'foo; sub foo { print "foo" }'
    $ perl -le '&foo; sub foo { print "foo" }'
    foo
    
  2. or download this
    $ perl -wle 'foo; sub foo{ print "foo"}'
    Unquoted string "foo" may clash with future reserved word at -e line 1
    +.
    Useless use of a constant in void context at -e line 1.