summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dubois <jand@activestate.com>2010-03-15 23:28:30 -0700
committerJan Dubois <jand@activestate.com>2010-03-15 23:28:30 -0700
commit343c800693b58170657091a89002f2b7e12f91b9 (patch)
tree3df929dfd5ea5d575ae217767f38fd08330b71da
parentec2eb4bd361a09e57e604554de76134547bd4457 (diff)
downloadperl-343c800693b58170657091a89002f2b7e12f91b9.tar.gz
Note that forbidding keywords as labels is controversial
-rw-r--r--pod/perltodo.pod4
1 files changed, 3 insertions, 1 deletions
diff --git a/pod/perltodo.pod b/pod/perltodo.pod
index d9d0807762..a16cf0d604 100644
--- a/pod/perltodo.pod
+++ b/pod/perltodo.pod
@@ -927,7 +927,9 @@ Currently C<goto keyword> "computes" the label value:
$ perl -e 'goto print'
Can't find label 1 at -e line 1.
-It would be nice to forbid labels with keyword names, to avoid confusion.
+It is controversial if the right way to avoid the confusion is to forbid
+labels with keyword names, or if it would be better to always treat
+bareword expressions after a "goto" as a label and never as a keyword.
=head2 truncate() prototype