summaryrefslogtreecommitdiff
path: root/pod/perlrecharclass.pod
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-11-25 19:14:46 -0700
committerKarl Williamson <public@khwilliamson.com>2013-11-25 19:40:42 -0700
commitf194034a5909067468cef63a1935bb519f3d0c69 (patch)
tree1fceb72affc39082d8402357cf24cef8f1e749c9 /pod/perlrecharclass.pod
parent65ddfa382794944ff77d034f7923f0f052ef0465 (diff)
downloadperl-f194034a5909067468cef63a1935bb519f3d0c69.tar.gz
perlrecharclass: Add statement about above-Unicode and (?[])
The extended bracketed character class does not raise warnings when non-Unicode code points are matched against it.
Diffstat (limited to 'pod/perlrecharclass.pod')
-rw-r--r--pod/perlrecharclass.pod5
1 files changed, 5 insertions, 0 deletions
diff --git a/pod/perlrecharclass.pod b/pod/perlrecharclass.pod
index 0a168a073b..a8ee854d15 100644
--- a/pod/perlrecharclass.pod
+++ b/pod/perlrecharclass.pod
@@ -972,6 +972,11 @@ You have to have two hex digits after a braceless C<\x> (use a leading
zero to make two). These restrictions are to lower the incidence of
typos causing the class to not match what you thought it would.
+If a regular bracketed character class contains a C<\p{}> or C<\P{}> and
+is matched against a non-Unicode code point, a warning may be
+raised, as the result is not Unicode-defined. No such warning will come
+when using this extended form.
+
The final difference between regular bracketed character classes and
these, is that it is not possible to get these to match a
multi-character fold. Thus,