From f194034a5909067468cef63a1935bb519f3d0c69 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Mon, 25 Nov 2013 19:14:46 -0700 Subject: [PATCH] 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. --- pod/perlrecharclass.pod | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pod/perlrecharclass.pod b/pod/perlrecharclass.pod index 0a168a0..a8ee854 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, -- 2.7.4