On Sat, 4 Dec 2004, Lawrence Statton wrote:

> If you re-read the question carefully:
> 
> >> Is there really any condition where "close" fails ... ?

Ok, I misread it, but the point still stands -- it's a prudent check.
 
> [...snip...] Another possibility (although far-fetched):  What if the 
> filesystem goes away while you had it open?

This isn't all that far-fetched: maybe the file is mounted from a remote 
filesystem via NFS, Samba, WebDAV, etc, and the connection is lost. If 
your network connection isn't reliable, this can be a big deal. 
 
 

-- 
Chris Devers

-- 
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