Help for this page

Select Code to Download


  1. or download this
    my $foo = "blah";
    print $main::foo; ## whoops, not the same variable
    
  2. or download this
    eval 'my $foo = 1';
    print $foo; ## whoops, outside of $foo's scope