Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Perl Programming/Keywords/continue

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Perl connect CORE Keywords The continue keyword continue is a flow-control statement, if followed by a BLOCK. In a BLOCK or BLOCK, each time before the conditional is to be evaluated, contents of BLOCK are executed. So, it can be used to increment a loop variable even after a next statement (that resembles to the continue statement of C and other languages). The BLOCK may contain last, next, or redo commands, where last and redo show the same behaviour as if they had been called in the main block. Syntax continue BLOCK continue Examples while (EXPRESSION) { ### possible redo do_something; } continue { ### possible next do_something_else; # go back the top to re-check the EXPRESSION } ### possible last call See also next Perl connect CORE Keywords