From 209c968599695b3650526a59d3b3325db5dee5ba Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 3 Jan 2013 21:15:55 -0700 Subject: [PATCH] perlunicode: Correct false statement This text is just plain wrong. It mixes up which is the block property and which is the script --- pod/perlunicode.pod | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pod/perlunicode.pod b/pod/perlunicode.pod index 44b5f71..7558b32 100644 --- a/pod/perlunicode.pod +++ b/pod/perlunicode.pod @@ -1015,16 +1015,16 @@ Level 1 - Basic Unicode Support [a] You can mimic class subtraction using lookahead. For example, what UTS#18 might write as - [{Greek}-[{UNASSIGNED}]] + [{Block=Greek}-[{UNASSIGNED}]] in Perl can be written as: - (?!\p{Unassigned})\p{InGreekAndCoptic} - (?=\p{Assigned})\p{InGreekAndCoptic} + (?!\p{Unassigned})\p{Block=Greek} + (?=\p{Assigned})\p{Block=Greek} But in this particular example, you probably really want - \p{GreekAndCoptic} + \p{Greek} which will match assigned characters known to be part of the Greek script. -- 2.7.4