Uri Guttman <uri@stemsystems.com> wrote: > i wonder why he copies %ENV. he should be able to just do: > > local( $SIG{$signame} ) = blah ; > > the is faster and doesn't have the odd number thing you mention Laziness :) I'm getting a hash(ref) of SIG overrides either as a return value from another sub. My workaround is something like this: my %sig = $self->some_callback; local $SIG{$_} = $sig->{$_} for keys %sig; ... My original (broken) code was this: local %SIG = (%SIG, $self->some_callback);Thread Previous | Thread Next