This patch changes the documentation in Fatal.pm to also suggest eval{} to trap the exception as well as $SIG{__DIE__}. *** lib/Fatal.pm.orig Tue Mar 7 09:55:04 2000 --- lib/Fatal.pm Tue Mar 7 09:59:56 2000 *************** *** 138,148 **** =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 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. 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 --- 138,148 ---- =head1 DESCRIPTION C<Fatal> provides a way to conveniently replace functions which normally ! 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. Exceptions ! can be caught using either C<eval{}> or a C<$SIG{__DIE__}> handler. 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 -- <Matt/> Details: FastNet Software Ltd - XML, Perl, Databases. Tagline: High Performance Web Solutions Web Sites: http://come.to/fastnet http://sergeant.org Available for Consultancy, Contracts and Training.Thread Previous | Thread Next