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

If the handle you're closing is a pipe, close() captures the exit status of
the child process. You should check the return value of close() in cases
like this.

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