Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Stopping Module Croaking

by Chady (Priest)
on May 11, 2005 at 09:10 UTC ( #455917=note: print w/ replies, xml ) Need Help??


in reply to Stopping Module Croaking

try to eval

eval { do_things(); do_something_that_might_die(); do_more_things(); }; if ($@) { print "something that might die has, indeed, died.\n"; print "message: ", $@, "\n"; }

Or something along these lines.


He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.
Chady | http://chady.net/
Are you a Linux user in Lebanon? join the Lebanese GNU/Linux User Group.


Comment on Re: Stopping Module Croaking
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2015-07-05 03:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls