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:
prints...#!/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();
hello at /tmp/t.pl line 12
In Section
Module Reviews