AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
exit EXPR

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.


[sh-index] Back to list of manuals