Lingua::PT::Nums2Words - Converts numbers to Portuguese words
use Lingua::PT::Nums2Words qw/num2word/; $result = num2word(5); # $result now holds 'cinco' @results = num2word(1,2,10,100,1000,9999); # @results now holds ('um', 'dois', 'dez', 'cem', 'mil', # 'nove mil novecentos e noventa e nove')
Nums2Words converts numbers to Portuguese words (works with numbers ranging from 0 to 999.999.999.999.999).
Does not support negative numbers.
This is the only function in this module. It turns numbers into words.
$number = num2word(77); # $number now holds "setenta e sete"
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::Nums2Words, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::PT::Nums2Words
CPAN shell
perl -MCPAN -e shell install Lingua::PT::Nums2Words
For more information on module installation, please visit the detailed CPAN module installation guide.