Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Unique testing problem

by BazB (Priest)
on May 23, 2003 at 20:04 UTC ( [id://260464]=note: print w/replies, xml ) Need Help??


in reply to Unique testing problem

Unless you've got a reason not to do so, change the exit to a die, then you can use an eval block to capture the exception in your testing code.

Example:

sub fall_over { die "Urgh!"; } eval { fall_over(); } print "We should have died!\n" if $@;


If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://260464]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 22:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found