Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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??


in reply to Testing failures: How to override print to make it fail?

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.

  • Comment on Re: Testing failures: How to override print to make it fail?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://454292]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2016-12-08 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (135 votes). Check out past polls.