laziness, impatience, and hubris | |
PerlMonks |
Re^2: How do I report an error back to the user of my object?by kcott (Archbishop) |
on Jun 05, 2012 at 19:01 UTC ( [id://974526]=note: print w/replies, xml ) | Need Help?? |
use Carp qw/confess/; I might just point out that this code stops the importation of carp and croak. By default, Carp imports confess, carp and croak. So, unless you specifically wanted to exclude carp and croak, you can just write:
If you wanted to export a non-default symbol (e.g. cluck) but still include the defaults, you can write:
See Exporter for a description of :DEFAULT and other Specialised Import Lists. -- Ken
In Section
Seekers of Perl Wisdom
|
|