http://www.perlmonks.org?node_id=324808


in reply to Re: How to lose Carp levels with @CARP_NOT?
in thread How to lose Carp levels with @CARP_NOT?

Argh, you're right. Well, that explains why it didn't work.

Any suggestions, other than calling longmess and removing the appropriate lines manually?

Liz

Replies are listed 'Best First'.
Re: Re: Re: How to lose Carp levels with @CARP_NOT?
by ysth (Canon) on Jan 28, 2004 at 22:35 UTC
    A quick check shows that longmess protects against newlines in the parameters, so manually filtering should work fairly easily (completely untested):
    $longmess =~ s/\n\tLog::Dispatch::(Perl::|::Output::)?[^:]+\(.*//g;