You can also install signal handlers on POSIX-compliant systems using sigaction(); see POSIX for details.# Handles when we exit with a 'die "foo"...' sub die_handler { my ($msg) = @_; shutdown_now("Died; $msg"); } $SIG{__DIE__} = \&die_handler;
stephen
In reply to Re: Are There Error Handlers in Perl?
by stephen
in thread Are There Error Handlers in Perl?
by sierrathedog04
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |