home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Book HomeJava and XSLTSearch this book

8.92. Fatal

Provides a way to replace functions that return false on failure with equivalents that die instead, so you can use the functions without having to test the return values explicitly. Fatal reports errors via die; you can trap them with $SIG{_ _DIE_ _} if you want to take action before the program exits. You can use Fatal for both user-defined functions and Perl core operators except exec and system.

import

import Fatal function

Wraps function in an equivalent function that will die on failure.



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.