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

Consider this was a 14 +/- line script with one die statement as I'd pasted in almost each reply when changes were made to accommodate suggestions. So again, the problem was not caused by


 die $!;
needing to be
 die "$!";

(like was mentioned)

Which was the point of the line of mine you quoted above :)

The point of my statement was to correct something that was said that could potentially hinder someone reading it's progress due to the inaccuracy of it, namely that the error I was seeing was because I hadn't double quoted $!, which is horribly inaccurate and clueless ;p

Almost as bad as saying one has the wrong shebang line when perl is what is doing the die() several lines into processing the script...

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