Loop control statements change the execution from its normal sequence. When execution leaves a scope, all automatic objects that were created in that scope are destroyed.
Perl supports the following control statements. Click the following links to check their detail.
|Sr.No.||Control Statement & Description|
It causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating.
Terminates the loop statement and transfers execution to the statement immediately following the loop.
A continue BLOCK, it is always executed just before the conditional is about to be evaluated again.
The redo command restarts the loop block without evaluating the conditional again. The continue block, if any, is not executed.
Perl supports a goto command with three forms: goto label, goto expr, and goto &name.