Don't forget the ; after the } at the end of eval statement.eval { # do something that might go wrong $a = 1; $b = 0; print $a/$b; }; if ($@} { print "Something went wrong: $@\n"; }
In reply to Re: Have script send email if it dies
by raafschild
in thread Have script send email if it dies
by bennymack
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |