use sigtrap; # Initialize default signal handlers use sigtrap qw(die normal-signals); use sigtrap 'handler' => \handlername, 'normal-signals'; use sigtrap qw(handler handlername normal-signals stack-trace error-signals);
Used to specify which handler will be installed for signals installed after the handler:
You can specify your own list of options:
use sigtrap qw(BUS SEGV PIPE ABRT);
or use one of the following built-in option lists:
Copyright © 2002 O'Reilly & Associates. All rights reserved.