FreeBSD.software
Home/devel/p5-Carp

p5-Carp

1.50

Alternative warn and die for modules

The Carp routines are useful in your own modules because they act like die() or warn(), but with a message which is more likely to be useful to a user of your module. In the case of cluck, confess, and longmess that context is a summary of every call in the call-stack. For a shorter message you can use carp or croak which report the error as being from where your module was called. There is no guarantee that that is where the error was, but it is a good educated guess.

Origin: devel/p5-Carp
Category: devel
Size: 47.9KiB
License: ART10, GPLv1+
Maintainer: sunpoet@FreeBSD.org
Dependencies: 1 packages
Required by: 1 packages
$pkg install p5-Carp

Dependencies (1)

Required By (1 packages)

More in devel