Evaluates EXPR and exits immediately with that value. (Actually, it
calls any defined END routines first, but the END routines may not
abort the exit. Likewise any object destructors that need to be called
are called before exit.) Example:
$ans = ;
exit 0 if $ans =~ /^[Xx]/;
See also
die()
. If EXPR is omitted, exits with 0 status.