Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
There's more than one way to do things
 
PerlMonks  

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

by hippo (Chaplain)
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 drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-04-18 11:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (466 votes), past polls