- or download this
$sym = "${callpack}::$sym" unless $sym =~ /::/;
*$sym =
...
require Carp;
Carp::croak("'$_' is not a valid variable name");
});
- or download this
perl -Mstrict -Wle 'BEGIN { *main::x = \$main::x; } $x = 42;'
- or download this
Variable "$x" is not imported at -e line 1.
Global symbol "$x" requires explicit package name at -e line 1.
Execution of -e aborted due to compilation errors.
- or download this
perl -Mstrict -Wle 'BEGIN { package ARBITRARY_PACKAGE_NAME; *main::x =
+ \$main::x; } $x = 42;'