Skip to content

Commit 887d89f

Browse files
author
Father Chrysostomos
committed
perlfunc/goto: Note the llafr exemption
1 parent a3390c9 commit 887d89f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pod/perlfunc.pod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2478,6 +2478,10 @@ necessarily recommended if you're optimizing for maintainability:
24782478

24792479
goto ("FOO", "BAR", "GLARCH")[$i];
24802480

2481+
As shown in this example, C<goto-EXPR> is exempt from the "looks like a
2482+
function" rule. A pair of parentheses following it does not (necessarily)
2483+
delimit its argument. C<goto("NE")."XT"> is equivalent to C<goto NEXT>.
2484+
24812485
Use of C<goto-LABEL> or C<goto-EXPR> to jump into a construct is
24822486
deprecated and will issue a warning. Even then, it may not be used to
24832487
go into any construct that requires initialization, such as a

0 commit comments

Comments
 (0)