Unicode::UCD Add synopsis info for num() to pod
authorKarl Williamson <public@khwilliamson.com>
Sun, 28 Aug 2011 18:16:13 +0000 (12:16 -0600)
committerKarl Williamson <public@khwilliamson.com>
Fri, 2 Sep 2011 17:57:44 +0000 (11:57 -0600)
lib/Unicode/UCD.pm

index 886a806..82ddb27 100644 (file)
@@ -1275,6 +1275,11 @@ sub _numeric {
 
 =head2 B<num()>
 
+    use Unicode::UCD 'num';
+
+    my $val = num("123");
+    my $one_quarter = num("\N{VULGAR FRACTION 1/4}");
+
 C<num> returns the numeric value of the input Unicode string; or C<undef> if it
 doesn't think the entire string has a completely valid, safe numeric value.