|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Testing failures: How to override print to make it fail?by adrianh (Chancellor) |
| on May 05, 2005 at 10:12 UTC ( #454292=note: print w/ replies, xml ) | Need Help?? |
|
How do I override the print function to make it fail? Another alternative to the others offered is to encapsulate the dying-print in a subroutine and then override that. I like this solution myself since it saves sprinkling "or die" everywhere.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||