That would syslog caught exceptions. See $^S.
if (!eval { ...; 1 }) { ... }
That wouldn't catch compile errors (although that's easily fixed using BEGIN).
use strict; $SIG{__DIE__} = sub { syslog("err", shift) }; for my $counter (1..10) { print("$conter\n"); }
In reply to Re: My proudest moment
by ikegami
in thread My proudest moment
by pileofrogs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |