On Sun, 09 Jan 2005 14:19:10 -0600
"JupiterHost.Net" <[EMAIL PROTECTED]> wrote:

> In this case there is no other sensible error message so why is die 
> "$!"; what I mean when I mean die $!; ? Why no t die "Sensible error 
> message $!"; ?



Well perhaps for a single debugging line, it doesn't matter too much, but 
consider a program where endless things can and do go wrong. Peppering your 
script with

or die "Can't open the file Data1 $!\n";
or die "Can't open the file Data2 $!\n";
or die "Can't open the file Data3 $!\n";
etc


really helps track down where to look


The rule is to always check the return value

-- 

Owen


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