use Lingua::PT::Nums2Ords; $ord = num2ord(20) # "vigesimo" @ord = num2ord(1,2,3) # qw(primeiro segundo terceiro)
Converts numbers to Portuguese ordinals. Works up to 999.999.999.999 ('novecentos e noventa e nove bilionesimos novecentos e noventa e nove milionesimos novecentos e noventa e nove milesimos nongentesimo nonagesimo nono').
Lingua::PT::Nums2Words
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.
To install Lingua::PT::Nums2Ords, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::PT::Nums2Ords
CPAN shell
perl -MCPAN -e shell install Lingua::PT::Nums2Ords
For more information on module installation, please visit the detailed CPAN module installation guide.