Perl: the Markov chain saw | |
PerlMonks |
perlfunc:exitby gods (Initiate) |
on Aug 24, 1999 at 22:43 UTC ( [id://314]=perlfunc: print w/replies, xml ) | Need Help?? |
exitSee the current Perl documentation for exit. Here is our local, out-dated (pre-5.6) version: exit - terminate this program
exit EXPR
Evaluates
EXPR and exits immediately with that value. (Actually,
it calls any defined
$ans = <STDIN>; exit 0 if $ans =~ /^[Xx]/;
See also die(). If
EXPR is omitted, exits with You shouldn't use exit() to abort a subroutine if there's any chance that someone might want to trap whatever error happened. Use die() instead, which can be trapped by an eval().
All |
|