Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: carp always showing stacktrace

by Perlbotics (Bishop)
on Jul 20, 2020 at 16:44 UTC ( #11119554=note: print w/replies, xml ) Need Help??


in reply to carp always showing stacktrace

BEGIN {$Carp::Verbose=0; $Carp::CarpLevel = 1; #<-- add this (for your demo) };
From Carp:
6. $Carp::CarpLevel can be set to skip a fixed number of additional call levels. Using this is not recommended because it is very difficult to get it to behave correctly.
So, you might need to use something like local $Carp::CarpLevel=1+=$whatever; ...

Replies are listed 'Best First'.
Re^2: carp always showing stacktrace
by LanX (Sage) on Jul 20, 2020 at 18:29 UTC
    Thanks, I'm using my own solution from the update now.

    It's shorter and easier than fiddling with Carp.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2022-05-22 10:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (80 votes). Check out past polls.

    Notices?