Sudarshan Raghavan wrote:

> ..
> You are right it is "Good Programming practice" to be defensive. Even though
> I would advocate a "close () or warn ()" instead of a "close () or die ()".
>
> But then again the choice is subjective, but "defensive programming" holds
> always.

I want to second that recommendation, and go a little further.  I would tend to say 
you should wrap such statements in try blocks.

ppm>install Error

System> perldoc Error
http://www.perl.com/pub/a/2002/11/14/exception.html #link courtesy Wiggins d'Anconia

Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to