Yes, happy new year 2014.
On 01/01/2014 12:09 PM, Shlomi Fish wrote:
> If it's a warning you can do «local $SIG{__WARN__} = sub { ... }». See %SIG in
> «perldoc perlvar» (see http://perldoc.perl.org/perlvar.html - it's also
> «perldoc
> -v '%SIG'» in recent versions of the perldoc command).
Thanks. So for that to work, I would wrap the calls to the offending
subroutine in a subroutine of its own?
> If it's an exception, then you can use either «eval { ... }» or alternatively
> «local $SIG{__DIE__}».
>
> It’s also possible to override the STDERR file handle, but this is quite
> nasty.
It was also mentioned off list by someone else that the two offending
lines in the module could be remmed out.
I'm really looking for a more portable solution, if there is one. Maybe
there isn't and maybe I should try submitting a patch. Since the
copyright notice in the module is 10 years old, where should a patch be
sent?
Regards,
/Lars
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/