José Alves de Castro > Lingua-PT-Nums2Ords-0.07 > Lingua::PT::Nums2Ords

Download:
Lingua-PT-Nums2Ords-0.07.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.07   Source  

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.

syntax highlighting: