Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by hippo (Curate)
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 cooling their heels in the Monastery: (5)
As of 2014-09-20 23:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (163 votes), past polls