This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix typo in POD for new Unicode::UCD::num() variant
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Thu, 28 Dec 2017 15:14:48 +0000 (15:14 +0000)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Thu, 28 Dec 2017 15:14:48 +0000 (15:14 +0000)
lib/Unicode/UCD.pm

index cd54e2e..2021680 100644 (file)
@@ -1865,7 +1865,7 @@ sub _numeric {
 
     my $val = num("123");
     my $one_quarter = num("\N{VULGAR FRACTION 1/4}");
-    my ($val = num("12a", \$valid_length);  # $valid_length contains 2
+    my $val = num("12a", \$valid_length);  # $valid_length contains 2
 
 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.