Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: When do filehandles close?

by nothingmuch (Priest)
on Jul 23, 2004 at 13:02 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-16 13:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found