Subject: | Case sensitivity in ja2num |
There is a certain amount of undocumented case sensitivity in ja2num:
use lib 'Lingua-JA-Numbers-0.05/lib';
use Lingua::JA::Numbers 'ja2num';
print ja2num ('NI MAN'), "\n";
print ja2num ('NI man'), "\n";
print ja2num ('Ni Man'), "\n";
print ja2num ('ni man'), "\n";
This produces the following output:
$ perl test2.pl
Bareword found where operator expected at (eval 5) line 1, near "1e"
(Missing operator before e?)
10000
20000
20000
The conversion of "NI man" into 10000 is particularly surprising.