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

Re^2: You *Can* Catch errors in closing lexical filehandles

by Zaxo (Archbishop)
on Sep 27, 2004 at 22:53 UTC ( #394387=note: print w/replies, xml ) Need Help??


in reply to •Re: You *Can* Catch errors in closing lexical filehandles
in thread Catching errors in closing lexical filehandles

Exactly, that's why I mentioned stale values of $! and set it to undef in the scriptified version of the second paragraph.

It would have been better to do that right before exiting the scope of $fh. EAGAIN is sometimes possible during normal I/O.

After Compline,
Zaxo

  • Comment on Re^2: You *Can* Catch errors in closing lexical filehandles

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://394387]
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 2020-06-02 11:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (17 votes). Check out past polls.

    Notices?