Skip Menu |

This queue is for tickets about the Lingua-JA-Numbers CPAN distribution.

Report information
The Basics
Id: 127157
Status: new
Priority: 0/
Queue: Lingua-JA-Numbers

People
Owner: Nobody in particular
Requestors: bkb [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.05
Fixed in: (no value)



Subject: "sen ichi" or "man ichi" in romaji cause a bug
The following code demonstrates the bug: use lib 'Lingua-JA-Numbers-0.05/lib'; use Lingua::JA::Numbers 'ja2num'; my $n; $n = ja2num ('sen ichi'); print "$n\n"; $n = ja2num ('sen juu ichi'); print "$n\n"; The output is like this: $ perl test.pl 1011 The origin of the bug appears to be that "sen ichi" is converted into "senichi" and then the "ni" within "senichi" is converted into a numeral 2, and the conversion fails. The same thing happens with "man ichi".