SlackBuilds Repository

14.0 > Perl > perl-Carp-Clan (6.04)

Carp::Clan - Report errors from perspective of caller of a "clan" of modules.

This module is based on "" from Perl 5.005_03. It has been modified to
skip all package names matching the pattern given in the "use" statement
inside the "qw()" term (or argument list).
Suppose you have a family of modules or classes named "Pack::A", "Pack::B" and
so on, and each of them uses "Carp::Clan qw(^Pack::);" (or at least the one in
which the error or warning gets raised).
Thus when for example your script "" calls module "Pack::A", and module
"Pack::A" calls module "Pack::B", an exception raised in module "Pack::B" will
appear to have originated in "" where "Pack::A" was called, and not in
"Pack::A" where "Pack::B" was called, as the unmodified "" would try to
make you believe :-).
This works similarly if "Pack::B" calls "Pack::C" where the exception is
raised, etcetera.
In other words, this blames all errors in the "Pack::*" modules on the user of
these modules, i.e., on you. ;-)

For more informations, see:

This requires: perl-Test-Exception

Maintained by: Marco Bonetti
Keywords: error reporting


Source Downloads:
Carp-Clan-6.04.tar.gz (b6316bc51bb530d994f2784615939fb2)

Download SlackBuild:
perl-Carp-Clan.tar.gz.asc (FAQ)

(the SlackBuild does not include the source)

See our HOWTO for instructions on how to use the contents of this repository.

Access to the repository is available via:
ftp git cgit http rsync

© 2006-2017 Project. All rights reserved.
Slackware® is a registered trademark of Patrick Volkerding
Linux® is a registered trademark of Linus Torvalds
Web Design by WebSight Designs |  Managed Hosting by OnyxLight Communications