Help for this page

Select Code to Download


  1. or download this
    sub moo { print("moooooain\n"); }
    package cow;
    sub moo { print("moooOoooOOoooo\n"); }  # <--- prints this
    eval 'moo();';
    
  2. or download this
    > echo "print(__PACKAGE__, $/);" > script.pl
    > perl -e "package foo; do 'script.pl';"
    main