Help for this page

Select Code to Download


  1. or download this
    package imp;
    *main::foo = \42;
    
  2. or download this
    perl -le 'BEGIN { require "imp.pl"}; use strict; print $foo'
    
  3. or download this
    perl -le 'BEGIN { require "imp.pl"}; use strict; print $foo'
    Variable "$foo" is not imported at -e line 1.
    Global symbol "$foo" requires explicit package name at -e line 1.
    Execution of -e aborted due to compilation errors.
    
  4. or download this
    perl -le 'BEGIN { require "imp.pl"}; use strict; print $bar'
    Global symbol "$bar" requires explicit package name at -e line 1.
    Execution of -e aborted due to compilation errors.