There's more than one way to do things | |
PerlMonks |
Re^2: Testing failures: How to override print to make it fail?by adrianh (Chancellor) |
on May 05, 2005 at 13:34 UTC ( [id://454357]=note: print w/replies, xml ) | Need Help?? |
What scenario are you envisioning that a print failing will be the sole indicator of a failure state? You can have a print fail due to, for example, lack of space on the device and then have the close succeed later on. There's also the argument that it's better to FailFast.
In Section
Seekers of Perl Wisdom
|
|