snoozeagain has asked for the wisdom of the Perl Monks concerning the following question:
in perl-5.12.5package a; sub b { a::SIG; } 1;
perl -E '$SIG{INT} = sub { die "happy" }; do "a.pm"; unless (defined $SIG{INT}) { say "gone!" }'
gone!
in perl-5.14.4
perl -E '$SIG{INT} = sub { die "happy" }; do "a.pm"; unless (defined $SIG{INT}) { say "gone!" }'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SIG gone!
by Anonymous Monk on Apr 11, 2013 at 00:47 UTC |