Skip to main content

  | मौसम…

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

411 REFERENCE · Wikibooks

Perl Programming/Keywords/goto

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

Perl gmtime grep Keywords The goto keyword The is command finds the label in the code and continues the execution there. Although it can be used to leave a subroutine, the commands die or last are better for this purpose. goto EXPRESSION expects that the EXPRESSION evaluates to a goto label, and tries to find it to continue there code execution. Syntax goto LABEL goto EXPRESSION goto &NAME Examples goto CONTINUE; CONTINUE: # We come here […] my $i = 1; goto ("FOO", "BAR", "GLARCH")[$i]; FOO: # Code continues here $i = 2; GLARCH: $i = 3; Perl gmtime grep Keywords