summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorKarl Williamson <khw@khw-desktop.(none)>2010-06-24 08:21:27 -0600
committerDavid Golden <dagolden@cpan.org>2010-07-17 21:50:48 -0400
commitfa1639c581be6a27f090adf217f82a3e86ba3446 (patch)
treece9274ff749c07475863a10b0f5b5a65d531a84f /pod
parent9d8606788fa6ee1bda9ff32c9ae6693c93631733 (diff)
downloadperl-fa1639c581be6a27f090adf217f82a3e86ba3446.tar.gz
\400 -\777 now means the same thing in all d-quote
Prior to this patch, \400 - \777 meant something different in some circumstances in regexes outside bracketed character classes. A deprecated warning message has been in place since 5.10.1 when this happens. Remove the warning, and bring the behavior into line with the other double-quotish contexts. \400 - \777 now always means the same thing as \x{100} - \x{1FF} (except when the octal forms are taken as backreferences.) Signed-off-by: David Golden <dagolden@cpan.org>
Diffstat (limited to 'pod')
-rw-r--r--pod/perl5133delta.pod10
-rw-r--r--pod/perldiag.pod9
-rw-r--r--pod/perlrebackslash.pod2
3 files changed, 11 insertions, 10 deletions
diff --git a/pod/perl5133delta.pod b/pod/perl5133delta.pod
index 049a78f7d2..476427e025 100644
--- a/pod/perl5133delta.pod
+++ b/pod/perl5133delta.pod
@@ -76,6 +76,16 @@ XXX For a release on a stable branch, this section aspires to be:
[ List each incompatible change as a =head2 entry ]
+=head2 \400 - \777
+
+Use of C<\400> - C<\777> in regexes in certain circumstances has given different,
+anomalous behavior than their use in all other double-quotish contexts. Since
+5.10.1, a deprecated warning message has been raised when this happens. Now,
+all double-quotish contexts have the same behavior, namely to be equivalent to
+C<\x{100}> - C<\x{1FF}>, with no deprecation warning. Use of these values in the
+command line option C<"-0"> retains the current meaning to slurp input files
+whole; previously, this was documented only for C<"-0777">.
+
=head1 Deprecations
XXX Any deprecated features, syntax, modules etc. should be listed here.
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 26c35a0c30..9e8a28735c 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -4961,15 +4961,6 @@ In code that currently says C<use AutoLoader; @ISA = qw(AutoLoader);>
you should remove AutoLoader from @ISA and change C<use AutoLoader;> to
C<use AutoLoader 'AUTOLOAD';>.
-=item Use of octal value above 377 is deprecated
-
-(D deprecated, W regexp) There is a constant in the regular expression whose
-value is interpeted by Perl as octal and larger than 377 (255 decimal, 0xFF
-hex). Perl may take this to mean different things depending on the rest of
-the regular expression. If you meant such an octal value, convert it to
-hexadecimal and use C<\xHH> or C<\x{HH}> instead. If you meant to have
-part of it mean a backreference, use C<\g> for that. See L<perlre>.
-
=item Use of %s in printf format not supported
(F) You attempted to use a feature of printf that is accessible from
diff --git a/pod/perlrebackslash.pod b/pod/perlrebackslash.pod
index 5728e7d05a..cfd9a6f6d8 100644
--- a/pod/perlrebackslash.pod
+++ b/pod/perlrebackslash.pod
@@ -211,7 +211,7 @@ Octal escapes consist of a backslash followed by three octal digits
matching the code point of the character you want to use. (In some contexts,
two or even one octal digits are also accepted, sometimes with a warning.) This
allows for 512 characters (C<\000> up to C<\777>) that can be expressed this
-way (but anything above C<\377> is deprecated). Enough in pre-Unicode days,
+way. Enough in pre-Unicode days,
but most Unicode characters cannot be escaped this way.
Note that a character that is expressed as an octal escape is considered