summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-10-14 22:08:22 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-10-14 22:08:22 +0000
commit6d76ae2fda72fed0c64cc4892cc6619af2b14707 (patch)
tree9d45adc219fe29d5568c6d303fbe82507de3629a /pod
parentc7a6a1a52721830cdeb59a9590209efc8a486204 (diff)
downloadperl-6d76ae2fda72fed0c64cc4892cc6619af2b14707.tar.gz
Warn inside character classes about unknown backslash escapes
(that are not caught earlier because of being completely unknown, such as \m), such as \z (because they make do sense inside regexen, but not inside character classes). p4raw-id: //depot/cfgperl@4380
Diffstat (limited to 'pod')
-rw-r--r--pod/perldelta.pod9
-rw-r--r--pod/perldiag.pod7
2 files changed, 13 insertions, 3 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index b4d4d217de..2ea923724c 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -1395,7 +1395,12 @@ your signed integers. See L<perlfunc/unpack>.
(W) You used a backslash-character combination which is not recognized
by Perl. This combination appears in an interpolated variable or a
-C<'>-delimited regular expression.
+C<'>-delimited regular expression. The character was understood literally.
+
+=item /%s/: Unrecognized escape \\%c in character class passed through
+
+(W) You used a backslash-character combination which is not recognized
+by Perl inside character classes. The character was understood literally.
=item /%s/ should probably be written as "%s"
@@ -1773,7 +1778,7 @@ subvert Perl's population of %ENV for nefarious purposes.
=item Unrecognized escape \\%c passed through
(W) You used a backslash-character combination which is not recognized
-by Perl.
+by Perl. The character was understood literally.
=item Unterminated attribute parameter in attribute list
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 11758e0e88..a6a723cc86 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -110,7 +110,12 @@ your signed integers. See L<perlfunc/unpack>.
(W) You used a backslash-character combination which is not recognized
by Perl. This combination appears in an interpolated variable or a
-C<'>-delimited regular expression.
+C<'>-delimited regular expression. The character was understood literally.
+
+=item /%s/: Unrecognized escape \\%c in character class passed through
+
+(W) You used a backslash-character combination which is not recognized
+by Perl inside character classes. The character was understood literally.
=item /%s/ should probably be written as "%s"