>>>>> "Felix" == Felix Li <[EMAIL PROTECTED]> writes:

Felix> It's fairly well known that one should use "open" with an "or
Felix> die". Is there really any condition where "close" fails, making
Felix> the "or die" necessary?

A close may need to flush a write buffer.  If there's an I/O error
during the flushing, the close will report that as a failed close.
Also, a close on a non-open filehandle is also an error. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to