Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: How to lose Carp levels with @CARP_NOT?

by ysth (Canon)
on Jan 28, 2004 at 21:47 UTC ( #324795=note: print w/replies, xml ) Need Help??

in reply to How to lose Carp levels with @CARP_NOT?

That quote is from the doc explaining how croak, carp, and shortmess work, and doesn't apply to confess, cluck, and longmess.

I think the distinction is that the former are considered useful for user messages (including programmer using a module) and the latter are not.

  • Comment on Re: How to lose Carp levels with @CARP_NOT?

Replies are listed 'Best First'.
Re: Re: How to lose Carp levels with @CARP_NOT?
by liz (Monsignor) on Jan 28, 2004 at 21:59 UTC
    Argh, you're right. Well, that explains why it didn't work.

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


      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;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://324795]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2016-10-22 12:41 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (294 votes). Check out past polls.