use Lingua::PT::Ords2Nums; $num = word2num('décimo primeiro') # 11
Converts Portuguese ordinals to numbers. Works up to 999.999.999.999 ('novecentos e noventa e nove bilionésimos novecentos e noventa e nove milionésimos novecentos e noventa e nove milésimos nongentésimo nonagésimo nono').
Lingua::PT::Words2Nums
More tools for the Portuguese language processing can be found at the Natura project: http://natura.di.uminho.pt
Jose Castro, <cog@cpan.org>
<cog@cpan.org>
Copyright 2004 Jose Castro, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'word2num('décimo'. Assuming CP1252
To install Lingua::PT::Ords2Nums, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::PT::Ords2Nums
CPAN shell
perl -MCPAN -e shell install Lingua::PT::Ords2Nums
For more information on module installation, please visit the detailed CPAN module installation guide.