in reply to Re: Custom SIG DIE handler that isn't executed in evals
in thread Custom SIG DIE handler that isn't executed in evals
Hi, thats what local does for globals :) it saves the value until the end of the scope/block
{ local $SIG{__DIE__} = ...; } ## no sig handler here doEval(); sub doEval { local $SIG{__DIE__} = ...; ... } ## the end
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Custom SIG DIE handler that isn't executed in evals
by tunafish (Beadle) on Sep 14, 2016 at 04:14 UTC | |
by Anonymous Monk on Sep 14, 2016 at 04:35 UTC | |
by RonW (Parson) on Sep 14, 2016 at 18:51 UTC |