Re: Suppressing Carp in a module

2014-01-01 Thread Shlomi Fish
Hi Lars, On Wed, 01 Jan 2014 12:38:17 +0200 Lars Noodén wrote: > Yes, happy new year 2014. > thanks! > 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.ht

Re: Suppressing Carp in a module

2014-01-01 Thread Lars Noodén
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). Tha

Re: Suppressing Carp in a module

2014-01-01 Thread Shlomi Fish
Hi Lars, Happy new year and I apologise for the late response. Please reply to list - http://shlom.in/reply . On Sat, 28 Dec 2013 20:05:12 +0200 Lars Noodén wrote: > DateTime::Event::Sunrise carps to stderr during the polar day or night. > From the man page: > >'the module "carp"s th

Suppressing Carp in a module

2013-12-28 Thread Lars Noodén
DateTime::Event::Sunrise carps to stderr during the polar day or night. From the man page: 'the module "carp"s that the sun never rises or never sets.' How can that output to stderr be suppressed so that the module is quiet? The sun not rising or setting is quite normal in certain lati