diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-11-25 19:14:46 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-11-25 19:40:42 -0700 |
commit | f194034a5909067468cef63a1935bb519f3d0c69 (patch) | |
tree | 1fceb72affc39082d8402357cf24cef8f1e749c9 /pod/perlrecharclass.pod | |
parent | 65ddfa382794944ff77d034f7923f0f052ef0465 (diff) | |
download | perl-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.pod | 5 |
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, |