That was my intent of my query.  close ... or die "$!" 

----- Original Message ----- 
From: "Kevin Lee Phair II" <[EMAIL PROTECTED]>
To: "Perl Beginners List" <[EMAIL PROTECTED]>
Sent: Sunday, December 05, 2004 12:35 AM
Subject: Re: close (...) or die "$!"


> Chris Devers wrote:
> 
> >On Sat, 4 Dec 2004, Felix Li wrote:
> >
> >  
> >
> >>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?
> >>    
> >>
> >
> >Of course!
> >
> ><reasons>
> >
> >The 'open ... or die ...' idiom makes debugging *much* easier.
> >
> >
> >  
> >
> I read the question being asked as "is there ever any reason to use  
> 'close ... or die ...'".  Even if I read the question wrong, I am now 
> curious as to what the answer to my interpretation is.
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
> 
> 

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