Help for this page

Select Code to Download


  1. or download this
    $sym = "${callpack}::$sym" unless $sym =~ /::/;
    *$sym =
    ...
         require Carp;
         Carp::croak("'$_' is not a valid variable name");
     });
    
  2. or download this
    perl -Mstrict -Wle 'BEGIN { *main::x = \$main::x; } $x = 42;'
    
  3. 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.
    
  4. or download this
    perl -Mstrict -Wle 'BEGIN { package ARBITRARY_PACKAGE_NAME; *main::x =
    + \$main::x; } $x = 42;'