|Don't ask to ask, just ask|
perlfunc:exitby gods (Initiate)
|on Aug 24, 1999 at 22:43 UTC ( #314=perlfunc: print w/replies, xml )||Need Help??|
See the current Perl documentation for exit.
Here is our local, out-dated (pre-5.6) version:
exit - terminate this program
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().