Help for this page

Select Code to Download


  1. or download this
    perl -e 'Foo->bar'
    
  2. or download this
    perl -e 'print qq~package Foo; sub bar { print "baz\\n" } 1\n~' > Foo.
    +pm; cat Foo.pm
    
  3. or download this
    perl -I. -MFoo -e 'Foo->bar'
    
  4. or download this
    perl -I. -ML -e 'Foo->bar'
    
  5. or download this
    perl -I. -e 'eval{Foo->bar};$_=$@;s/.*forgot to load "([^"]+)".*/$1/s;
    +eval{require"$_.pm"};Foo->bar'
    
  6. or download this
    perl -e 'print qq~package X; { package UNIVERSAL; our \$AUTOLOAD; sub 
    +AUTOLOAD { warn "\$AUTOLOAD" }} 9\n~' > X.pm; cat X.pm
    
  7. or download this
    perl -I. -MX -e ''
    
  8. or download this
    perl -I. -MX -e 'Foo->bar'