Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: filehandle for close

by razzmataz (Novice)
on Jan 15, 2013 at 14:45 UTC ( #1013406=note: print w/replies, xml ) Need Help??


in reply to filehandle for close

Try this:

use IO::File; my %files; $files{"foo"} = IO::File->new(">xyz"); print { $files{"foo"} } "done\n"; $files{"foo"}->close;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1013406]
help
Chatterbox?
[karlgoethebier]: $brand He!
[karlgoethebier]: AKA عبد الله إبراهيم
[karlgoethebier]: Abdullah Ibrahim

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2017-05-29 20:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?