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 (Canon) 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