I use $SIG{__DIE__} to send me a mail:
$SIG{__DIE__} = sub { my $err = $@; local $@; mail($@); };
That way, whenever the script dies, the error gets mailed to me.
In reply to Re: Improving the Error Handling of my Scripts
by Corion
in thread Improving the Error Handling of my Scripts
by Dru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |