- or download this
package imp;
*main::foo = \42;
- or download this
perl -le 'BEGIN { require "imp.pl"}; use strict; print $foo'
- 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.
- 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.