in reply to Re^3: SIG, Modules, and Eval
in thread SIG, Modules, and Eval
In what phase is that SIG handler assigned? I would have thought it was in an implied INIT, but the code acts like it's in an implied BEGIN. I ended up solving the entire issue by putting that line in an explicit INIT block, but why did I have to do that?package X; BEGIN { whatever; } $main::SIG{__DIE__} = \&some_function; # when does this get run? sub new { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: SIG, Modules, and Eval
by AppleFritter (Vicar) on Aug 16, 2014 at 19:30 UTC | |
by kbrannen (Beadle) on Aug 18, 2014 at 01:31 UTC | |
by Anonymous Monk on Aug 18, 2014 at 08:08 UTC |