You are viewing the version of this documentation from Perl blead. This is the main development branch of Perl. (git commit 8c71d4a0b542607dbfe67a67fc2fee44f2452d5d)
break

Break out of a given block.

break is available only if the "switch" feature is enabled or if it is prefixed with CORE::. The "switch" feature is enabled automatically with a use v5.10 (or higher) declaration in the current scope.