Think about Loose Coupling | |
PerlMonks |
Re: Best way to replace 'die' with 'warn'by bv (Friar) |
on Dec 06, 2009 at 03:59 UTC ( [id://811302]=note: print w/replies, xml ) | Need Help?? |
Perhaps someone more knowledgeable could clarify, but perlmod seems to indicate that you can set the %SIG hash as a package variable, so you could do something like this:
I think that would cover every call to die() from within the Weather::Com package. Inspection of @_ within your new handler could let it die if something was really a big problem.
In Section
Seekers of Perl Wisdom
|
|