in reply to Re: Horrible "undef local $foo;" (was: Re: Signals and 'IGNORE')
in thread Signals and 'IGNORE'
undef local $SIG{INT} is clearer in intention than local $SIG{INT}Allow me to disagree. I do not find it more readable, instead, I find this may qualify as obfuscation. This is not Perl. Well actually, it is, but I don't think it is normal Perl.
If you insist on explicitely showing that this value is set to undef, please use a more common idiom:
The explicit assignment is still unnecessary, but at least it looks more harmless.local $SIG{INT} = undef;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Horrible "undef local $foo;" (was: Re: Signals and 'IGNORE')
by shotgunefx (Parson) on Jan 07, 2003 at 09:28 UTC |