Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^2: Catching errors in closing lexical filehandles

by gaal (Parson)
on Sep 27, 2004 at 06:18 UTC ( [id://394082]=note: print w/replies, xml ) Need Help??

in reply to Re: Catching errors in closing lexical filehandles
in thread Catching errors in closing lexical filehandles

I used to use IO::File for the cleanliness back when "open my $fh" didn't work. Or when I didn't feel like the overhead sometimes I used gensym (remember that?). I'm aware of all those advantages and mentioned most of them in the original post; and I still like the idea of automatic close :)

Can you explain why explicitly closing output filehandles is especially important? Modulo close failures, in our case the close *will* happen, together with associated flushing.

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-06-15 18:07 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.