Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How to send the "die" output to e-mail.

by hippo (Deacon)
on Nov 20, 2013 at 18:52 UTC ( #1063574=note: print w/ replies, xml ) Need Help??


in reply to How to send the "die" output to e-mail.

This is called "exception handling" (among other names). The modern way of performing this is to use any of the "Try" modules - I find that Try::Tiny is a good place to start. Older code might rely more heavily on eval which is not without its problems, hence the "Try" modules.

If you are familiar with exception handling from other languages where it is built in, you should have no problems with it in Perl.


Comment on Re: How to send the "die" output to e-mail.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (17)
As of 2014-07-31 13:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (248 votes), past polls