perlrecharclass: Add statement about above-Unicode and (?[])
authorKarl Williamson <public@khwilliamson.com>
Tue, 26 Nov 2013 02:14:46 +0000 (19:14 -0700)
committerKarl Williamson <public@khwilliamson.com>
Tue, 26 Nov 2013 02:40:42 +0000 (19:40 -0700)
The extended bracketed character class does not raise warnings when
non-Unicode code points are matched against it.

pod/perlrecharclass.pod

index 0a168a0..a8ee854 100644 (file)
@@ -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,