in reply to Re: Signals and 'IGNORE'
in thread Signals and 'IGNORE'
or maybe [for self-documentation - thanks to broquaint for asking]Yuck. Please don't advice people to write this kind of junk. Rather, teach them about Perl's default behaviour: if you localize a scalar variable, it gets the value undef — unless you assign something to it. Sowill do.{ undef local $SIG{INT}; }
should be self-documenting enough. (If it isn't: learn Perl!) But not this... perversion.local $foo;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Horrible "undef local $foo;" (was: Re: Signals and 'IGNORE')
by shotgunefx (Parson) on Jan 06, 2003 at 13:50 UTC | |
by merlyn (Sage) on Jan 06, 2003 at 14:30 UTC | |
by shotgunefx (Parson) on Jan 06, 2003 at 14:44 UTC | |
by waswas-fng (Curate) on Jan 06, 2003 at 16:07 UTC | |
by bart (Canon) on Jan 07, 2003 at 00:53 UTC | |
by shotgunefx (Parson) on Jan 07, 2003 at 09:28 UTC |