summaryrefslogtreecommitdiff
path: root/pod/perldiag.pod
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-10-07 16:54:49 -0600
committerKarl Williamson <khw@cpan.org>2015-10-13 13:09:42 -0600
commit163a633cbf00c0dfe5ec52830b2ffcaebd61dcb0 (patch)
tree874b2c2df8ecd91edc76d73a4720b4824e2d3e7d /pod/perldiag.pod
parent29f52644a906e49933b672f1d68289433eca6e96 (diff)
downloadperl-163a633cbf00c0dfe5ec52830b2ffcaebd61dcb0.tar.gz
Fix \p followed by a non-alpha
See threads beginning at http://nntp.perl.org/group/perl.perl5.porters/231263 http://nntp.perl.org/group/perl.perl5.porters/231389 Prior to this commit, these did not generate the pattern that would be expected, and displayed apparently irrelevant warnings. Now this is a fatal error. This resolves [perl #126187]. I don't think it's worth a perldelta entry for this ticket, as the new error message is now in perldelta, and this never worked properly anyway; it's just now we have a proper error message. Patches welcome if you disagree.
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r--pod/perldiag.pod7
1 files changed, 7 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 5e2fbebf02..a9a326cd64 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -1484,6 +1484,13 @@ Note that ASCII characters that don't map to control characters are
discouraged, and will generate the warning (when enabled)
L</""\c%c" is more clearly written simply as "%s"">.
+=item Character following \%c must be '{' or a single-character Unicode property name in regex; marked by <-- HERE in m/%s/
+
+(F) (In the above the C<%c> is replaced by either C<p> or C<P>.) You
+specified something that isn't a legal Unicode property name. Most
+Unicode properties are specified by C<\p{...}>. But if the name is a
+single character one, the braces may be omitted.
+
=item Character in 'C' format wrapped in pack
(W pack) You said