Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re^2: How do I report an error back to the user of my object?
by kcott
|
|