perlunicode: Correct false statement
authorKarl Williamson <public@khwilliamson.com>
Fri, 4 Jan 2013 04:15:55 +0000 (21:15 -0700)
committerKarl Williamson <public@khwilliamson.com>
Mon, 7 Jan 2013 04:22:42 +0000 (21:22 -0700)
This text is just plain wrong.  It mixes up which is the block property
and which is the script

pod/perlunicode.pod

index 44b5f71..7558b32 100644 (file)
@@ -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.