Keep It Simple, Stupid | |
PerlMonks |
Re^3: Looking for discussions of "block after or" syntax errorby Laurent_R (Canon) |
on May 01, 2013 at 21:34 UTC ( [id://1031655]=note: print w/replies, xml ) | Need Help?? |
Agreed. I did not think about that. And I usually don't do such a print anyway but rather a die statement (although, going to the end of this logic, what do you do if die fails? Do you 'die "i failed" or die "die failed"'? Usually, the only reason I want to know that opening a file failed if to get an immediate diagnostic of the reason for the program failure. If the print statement fails, well, I am likely to have more severe problems than just file opening.
In Section
Seekers of Perl Wisdom
|
|