Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
document that forward goto requires quotes
  • Loading branch information
TimToady committed Aug 24, 2011
1 parent d91760b commit 187e15b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions S04-control.pod
Expand Up @@ -13,8 +13,8 @@ Synopsis 4: Blocks and Statements

Created: 19 Aug 2004

Last Modified: 10 Aug 2011
Version: 111
Last Modified: 23 Aug 2011
Version: 112

This document summarizes Apocalypse 4, which covers the block and
statement syntax of Perl.
Expand Down Expand Up @@ -1232,6 +1232,11 @@ binding (not to mention list generation in the case of C<for>).
can be emulated for a bare block, so that doesn't fall under the
prohibition on bypassing formal binding.)

Because it is possible to go to a label that is after the operation,
and because Perl 6 does one-pass passing, any C<goto> to a label
that has not been yet declared (or is declared outside the outward
lexical scope of the C<goto>) must enclose the label in quotes.

=head1 Exceptions

As in Perl 5, many built-in functions simply return an undefined value
Expand Down

0 comments on commit 187e15b

Please sign in to comment.