diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-07 10:24:55 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-07 10:24:55 +0000 |
commit | 59d9ee20c174dac13d86b680b0685e43c9fe2074 (patch) | |
tree | 616c6b1e974e702a07f0b0389632065bcf643880 /lib/Fatal.pm | |
parent | fc2904571a077900be0708b6f150c27f77e62f18 (diff) | |
download | perl-59d9ee20c174dac13d86b680b0685e43c9fe2074.tar.gz |
Fatal.pm pod tweak (from Matt Sergeant <matt@sergeant.org>)
p4raw-id: //depot/perl@5594
Diffstat (limited to 'lib/Fatal.pm')
-rw-r--r-- | lib/Fatal.pm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Fatal.pm b/lib/Fatal.pm index 5b832f6427..d033d62713 100644 --- a/lib/Fatal.pm +++ b/lib/Fatal.pm @@ -139,11 +139,10 @@ Fatal - replace functions with equivalents which succeed or die =head1 DESCRIPTION C<Fatal> provides a way to conveniently replace functions which normally -return a false value when they fail with equivalents which halt execution +return a false value when they fail with equivalents which raise exceptions if they are not successful. This lets you use these functions without -having to test their return values explicitly on each call. Errors are -reported via C<die>, so you can trap them using C<$SIG{__DIE__}> if you -wish to take some action before the program exits. +having to test their return values explicitly on each call. Exceptions +can be caught using C<eval{}>. See L<perlfunc> and L<perlvar> for details. The do-or-die equivalents are set up simply by calling Fatal's C<import> routine, passing it the names of the functions to be |