Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Carp::Clan

by Aristotle (Chancellor)
on Jun 08, 2006 at 20:58 UTC ( #554364=note: print w/replies, xml ) Need Help??


in reply to Re: Carp::Clan
in thread Carp::Clan

The documentation of that feature is too curt and the code is withstanding my attempts to understand it in a hurry. How does one employ that?

Makeshifts last the longest.

Replies are listed 'Best First'.
Re^3: Carp::Clan
by salva (Abbot) on Jun 09, 2006 at 06:51 UTC
    you just push there the names of the packages you want to skip when calling carp, croak, etc.

    For instance:

    #!/usr/bin/perl package Foo; sub foo { Bar::bar() } package Bar; use Carp; our @CARP_NOT = qw(Foo); sub bar { croak "hello" } package main; Foo::foo();
    prints...
    hello at /tmp/t.pl line 12

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2020-02-28 19:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (127 votes). Check out past polls.

    Notices?