Help for this page

Select Code to Download


  1. or download this
    $ perl -e'$x="1"; $x->otherwise'
    Can't call method "otherwise" without a package or object reference at
    + -e line 1.
    
  2. or download this
    $ perl -e'$x="1"; otherwise $x'
    Can't call method "otherwise" without a package or object reference at
    + -e line 1.
    
  3. or download this
    $ perl -le'sub otherwise { print "foo" } $x="1"; otherwise $x'
    foo