From: Gurusamy Sarathy Date: Tue, 7 Mar 2000 10:24:55 +0000 (+0000) Subject: Fatal.pm pod tweak (from Matt Sergeant ) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=59d9ee20c174dac13d86b680b0685e43c9fe2074;p=p5sagit%2Fp5-mst-13.2.git Fatal.pm pod tweak (from Matt Sergeant ) p4raw-id: //depot/perl@5594 --- diff --git a/lib/Fatal.pm b/lib/Fatal.pm index 5b832f6..d033d62 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 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, 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. See L and L for details. The do-or-die equivalents are set up simply by calling Fatal's C routine, passing it the names of the functions to be