=over =item exit EXPR Evaluates EXPR and exits immediately with that value. (Actually, it calls any defined C routines first, but the C 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 C. If EXPR is omitted, exits with C<0> status. The only universally portable values for EXPR are C<0> for success and C<1> for error; all other values are subject to unpredictable interpretation depending on the environment in which the Perl program is running. You shouldn't use C to abort a subroutine if there's any chance that someone might want to trap whatever error happened. Use C instead, which can be trapped by an C. All C blocks are run at exit time. See L for details. =back