Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Catching errors (II).by Steve_BZ (Chaplain) |
on Oct 30, 2014 at 14:08 UTC ( [id://1105630]=perlquestion: print w/replies, xml ) | Need Help?? |
Steve_BZ has asked for the wisdom of the Perl Monks concerning the following question: Hi Guys, This carries on from Catching errors.. I took the advice of saberworks and instituted a custom die and warn routine like this:
So now I get any uncaught perl errors and warnings in my email. It is totally wonderful. Errors are reported automatically by the failing system, and can be fixed before the user even complains! But What about the dreaded segfault? Guys, what should I do? I'm thinking about having a calling routine (a Perl app or bashscript) that catches the error and then reports it to me before automatically restarting the application. What do you think? Regards, Steve.
Back to
Seekers of Perl Wisdom
|
|