Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Carp::Clan

by salva (Canon)
on Jun 09, 2006 at 06:51 UTC ( [id://554438]=note: print w/replies, xml ) Need Help??


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

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://554438]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 01:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found