Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    eval 'undef $main::xyz;';
    
    print "After undef: \$xyz ", (exists($::{'xyz'}) ? 'exists' : 'does no
    +t exist'), "\n";
    
  2. or download this
    Before assignment: $xyz does not exist
    After assignment: $xyz exists
    42
    After undef: $xyz exists