summaryrefslogtreecommitdiff
path: root/pod/perlop.pod
diff options
context:
space:
mode:
authorKarl Williamson <khw@khw-desktop.(none)>2010-07-18 12:28:14 -0600
committerRafael Garcia-Suarez <rgs@consttype.org>2010-09-16 15:09:26 +0200
commitc99e91e919b4bb89bab7829a9026ee01b1fff2a1 (patch)
tree5b069e6bd24b358e42e94e01b97424d5a09d9bfc /pod/perlop.pod
parenteb06eac93f0120092363c6c7ba87bb7054e76844 (diff)
downloadperl-c99e91e919b4bb89bab7829a9026ee01b1fff2a1.tar.gz
Fix /[\8]/ to not match NULL; give correct warning
8 and 9 are not treated as alphas in parsing as opposed to illegal octals. This also adds tests to verify that 1-3 digits work in char classes. I created an isOCTAL macro in case that lookup gets moved to a bit field, as I plan to do later, for speed.
Diffstat (limited to 'pod/perlop.pod')
-rw-r--r--pod/perlop.pod3
1 files changed, 0 insertions, 3 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod
index 08da209fc0..cb0a291d92 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -1141,9 +1141,6 @@ the left with zeros to make three digits. For larger ordinals, either use
C<\o{}> , or convert to someething else, such as to hex and use C<\x{}>
instead.
-A backslash followed by a non-octal digit in a bracketed character class
-(C<[\8]> or C<[\9]>) will be interpreted as a NULL character and the digit.
-
Having fewer than 3 digits may lead to a misleading warning message that says
that what follows is ignored. For example, C<"\128"> in the ASCII character set
is equivalent to the two characters C<"\n8">, but the warning C<Illegal octal