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;
In reply to Horrible "undef local $foo;" (was: Re: Signals and 'IGNORE')
by bart
in thread Signals and 'IGNORE'
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |