I'd recommend to treat %SIG as magic and not to expect
local %SIG to have useful effects
perlvar says
> Due to an implementation glitch, the $SIG{__DIE__} hook is called even inside an "eval()".
this is a strong hint that the implementation doesn't always resolve %SIG like with normal variables ( well, that's why it's called a "special variable" anyway)
local %SIG looks wrong anyway since you are disabling all default settings of a running system
DB<100> \%SIG
=> do {
my $a = {
__DIE__ => sub { ... },
__WARN__ => sub { ... },
ABRT => undef,
ALRM => undef,
BUS => sub { ... },
CHLD => undef,
CLD => undef,
CONT => undef,
FPE => "IGNORE",
HUP => undef,
ILL => undef,
INT => sub { ... },
IO => undef,
IOT => undef,
KILL => undef,
NUM32 => undef,
NUM33 => undef,
NUM35 => undef,
NUM36 => undef,
NUM37 => undef,
NUM38 => undef,
NUM39 => undef,
NUM40 => undef,
NUM41 => undef,
NUM42 => undef,
NUM43 => undef,
NUM44 => undef,
NUM45 => undef,
NUM46 => undef,
NUM47 => undef,
NUM48 => undef,
NUM49 => undef,
NUM50 => undef,
NUM51 => undef,
NUM52 => undef,
NUM53 => undef,
NUM54 => undef,
NUM55 => undef,
NUM56 => undef,
NUM57 => undef,
NUM58 => undef,
NUM59 => undef,
NUM60 => undef,
NUM61 => undef,
NUM62 => undef,
NUM63 => undef,
PIPE => undef,
POLL => undef,
PROF => undef,
PWR => undef,
QUIT => undef,
RTMAX => undef,
RTMIN => undef,
SEGV => 'fix',
STKFLT => undef,
STOP => undef,
SYS => undef,
TERM => undef,
TRAP => undef,
TSTP => undef,
TTIN => undef,
TTOU => undef,
UNUSED => undef,
URG => undef,
USR1 => undef,
USR2 => undef,
VTALRM => undef,
WINCH => undef,
XCPU => undef,
XFSZ => undef,
};
$a->{SEGV} = $a->{BUS};
$a;
}
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.