Help for this page

Select Code to Download


  1. or download this
    {
        local *FILE; # declare every FILE symbol ($FILE, @FILE, as well as
    + the handle) local
    ...
    }
    
    print "open" if fileno(FILE); # nope.
    
  2. or download this
    {
        open my $fh, "<", "foo";
        print $fh "blah";
    }
    # $fh is gone here