Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: When do filehandles close?

by nothingmuch (Priest)
on Jul 23, 2004 at 13:02 UTC ( #376875=note: print w/replies, xml ) Need Help??

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
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://376875]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2022-12-05 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?