diff options
author | Michael Stevens <mstevens@etla.org> | 2011-01-24 14:39:44 +0000 |
---|---|---|
committer | Jesse Vincent <jesse@bestpractical.com> | 2011-02-01 13:23:29 -0500 |
commit | aaca3d9d58910fafbab70bd0b7ea0c7c55d8e9a8 (patch) | |
tree | a67b12784ac077a58d0cd134be4aaa19d70b7bdb /lib/Carp.pm | |
parent | 193454d51d1585c301532c409d00f42e108023f3 (diff) | |
download | perl-aaca3d9d58910fafbab70bd0b7ea0c7c55d8e9a8.tar.gz |
Fix NAME section to be valid.
Diffstat (limited to 'lib/Carp.pm')
-rw-r--r-- | lib/Carp.pm | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/Carp.pm b/lib/Carp.pm index 258be4e4c1..be4cb69225 100644 --- a/lib/Carp.pm +++ b/lib/Carp.pm @@ -351,20 +351,22 @@ __END__ =head1 NAME -carp - warn of errors (from perspective of caller) - -cluck - warn of errors with stack backtrace - (not exported by default) - -croak - die of errors (from perspective of caller) - -confess - die of errors with stack backtrace +Carp - alternative warn and die for modules =head1 SYNOPSIS use Carp; + + # warn user (from perspective of caller) + carp "string trimmed to 80 chars"; + + # die of errors (from perspective of caller) croak "We're outta here!"; + # die of errors with stack backtrace + confess "not implemented"; + + # cluck not exported by default use Carp qw(cluck); cluck "This is how we got here!"; |