Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Re: How to lose Carp levels with @CARP_NOT?by liz (Monsignor) |
on Jan 29, 2004 at 16:52 UTC ( [id://324961]=note: print w/replies, xml ) | Need Help?? |
The more robust solution is the new internal style. Just stick the line: $Carp::Internal{$_}++ for 'Log::Dispatch::Output', 'Log::Dispatch'; in your module. And now those two packages will be ignored whenever Carp crawls back, looking for where to start reporting the error from.
How will you know whether a Carp.pm supports this? Check if the %Carp::Internal hash exists already? Or is there some version number check that I can use? Liz
In Section
Seekers of Perl Wisdom
|
|