Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Implicit closing of files

by ikegami (Patriarch)
on Jun 17, 2008 at 12:42 UTC ( [id://692494]=note: print w/replies, xml ) Need Help??


in reply to Implicit closing of files

Yes, unless *HANDLE or *HANDLE{IO} is still referenced by something.
{ my $fh; { local *HANDLE; open(HANDLE, '>', 'temp') or die; print HANDLE "foo\n"; $fh = *HANDLE{IO}; } print $fh "bar\n" or die; # Works. } # Now it's closed.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-19 12:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found