diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-07-21 10:38:55 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-07-21 10:38:55 +0200 |
commit | dee8984cba45cc99110362dad3c7f88b172a5627 (patch) | |
tree | 206a2fece6d14c94e9d35555763f036781ed986b /pod/perltodo.pod | |
parent | b7a2910fd64a2301841bce86ff41b625de58ce4a (diff) | |
download | perl-dee8984cba45cc99110362dad3c7f88b172a5627.tar.gz |
perltodo: forbid labels with keyword names
Diffstat (limited to 'pod/perltodo.pod')
-rw-r--r-- | pod/perltodo.pod | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pod/perltodo.pod b/pod/perltodo.pod index c84b51e368..ddafb95fb2 100644 --- a/pod/perltodo.pod +++ b/pod/perltodo.pod @@ -804,6 +804,15 @@ also the warning messages (see L<perllexwarn>, C<warnings.pl>). These tasks would need C knowledge, and knowledge of how the interpreter works, or a willingness to learn. +=head2 forbid labels with keyword names + +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. + =head2 error reporting of [$a ; $b] Using C<;> inside brackets is a syntax error, and we don't propose to change |