summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2011-12-30 01:01:21 -0300
committerFather Chrysostomos <sprout@cpan.org>2012-01-02 22:30:40 -0800
commit52ed07f6cefce274b246146dd14fc3fc836677f6 (patch)
tree9b2baba5b9f5b37b7d82605e7ebe0a3f7d86dc69 /pod
parent7d6220ecda024f14ec8330f7415c2d4bed7ee62b (diff)
downloadperl-52ed07f6cefce274b246146dd14fc3fc836677f6.tar.gz
toke.c: Unpaired '\E's in double-quotish contexts should warn.
Until now, an unpaired \E (that is, one lacking a \U, \L or \Q) would just pass through unnoticed. This commit changes that behavior to issue a warning instead.
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 ea1d259379..3ee0438a10 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -1989,6 +1989,11 @@ when you meant
(or something like that).
+=item Found \E without a preceding case modification or quoted section
+
+(W misc) You have a \E in a double-quotish string without a C<\U>,
+C<\L> or C<\Q> preceding it.
+
=item %s found where operator expected
(S syntax) The Perl lexer knows whether to expect a term or an operator.