|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
perlman:lib:Fatalby root (Scribe) |
| on Dec 23, 1999 at 00:49 UTC ( #1110=perlfunc: print w/ replies, xml ) | Need Help?? |
lib:FatalSee the current Perl documentation for lib:Fatal. Here is our local, out-dated (pre-5.6) version: ![]() Fatal - replace functions with equivalents which succeed or die
![]()
use Fatal qw(open close);
sub juggle { . . . }
import Fatal 'juggle';
![]()
The do-or-die equivalents are set up simply by calling Fatal's import routine, passing it the names of the functions to be replaced. You may wrap both user-defined functions and overridable CORE operators (except exec, system which cannot be expressed via prototypes) in this way.
AUTHORprototype updates by Ilya Zakharevich ilya@math.ohio-state.edu |
|