in reply to Are There Error Handlers in Perl?
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
|
|---|