Lingua::PT::Nums2Ords - Converts numbers to Portuguese ordinals


NAME

Lingua::PT::Nums2Ords - Converts numbers to Portuguese ordinals


SYNOPSIS

  use Lingua::PT::Nums2Ords qw/num2ord/;
  $ord = num2ord(20)     # "vigesimo"
  @ord = num2ord(1,2,3)  # qw(primeiro segundo terceiro)


DESCRIPTION

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').

num2ord

This is the only function in the module. It turns a number into an ordinal.

  $ord = num2ord(2)
  # $ord now holds "segundo"


DEPENDENCIES

Lingua::PT::Nums2Words


SEE ALSO

More tools for the Portuguese language processing can be found at the Natura project: http://natura.di.uminho.pt


AUTHOR

Jose Castro, <cog@cpan.org>


COPYRIGHT & LICENSE

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.

 Lingua::PT::Nums2Ords - Converts numbers to Portuguese ordinals