summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-07-30 23:19:13 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-07-30 23:19:13 +0200
commit28ccebc469d90664106fcc1cb73d7321c4b60716 (patch)
treeb7b7698a545a537ffdff256440c9aa5c5f1a6daf /pod
parent8cf77941f2751a20a52ac4bbbcff354f82ac4c91 (diff)
downloadperl-28ccebc469d90664106fcc1cb73d7321c4b60716.tar.gz
Add new error "Can't use keyword '%s' as a label"
Diffstat (limited to 'pod')
-rw-r--r--pod/perldiag.pod5
1 files changed, 5 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 2623010499..9447ba44f1 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -1147,6 +1147,11 @@ that is already inside a group with a byte-order modifier.
For example you cannot force little-endianness on a type that
is inside a big-endian group.
+=item Can't use keyword '%s' as a label
+
+(F) You attempted to use a reserved keyword, such as C<print> or C<BEGIN>,
+as a statement label. This is disallowed since Perl 5.11.0.
+
=item Can't use "my %s" in sort comparison
(F) The global variables $a and $b are reserved for sort comparisons.