exit

NAME

exit - terminate this program


SYNOPSIS

exit EXPR


DESCRIPTION

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 = <STDIN>; exit 0 if $ans =~ /^[Xx]/;

See also die() . If EXPR is omitted, exits with 0 status.