Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Perl

Idiom #87 Stop program

Exit immediately.
If some extra cleanup work is executed by the program runtime (not by the OS itself), describe it.

exit 0;

The zero is the return code to the OS.
return 0;

Only works in main(), actually.

New implementation...