Teodor Zlatanov > Lingua-Slavic-Numbers-0.03 > Lingua::BG::Numbers

Download:
Lingua-Slavic-Numbers-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Lingua::BG::Numbers - Converts numeric values into their Bulgarian string equivalents, using Lingua::Slavic::Numbers.

SYNOPSIS ^

 See Lingua::Slavic::Numbers.  ordinate_to_bg and number_to_bg are
 simply calls to ordinate_to_slavic and number_to_slavic.

 use Lingua::BG::Numbers qw(number_to_bg ordinate_to_bg);
 print number_to_bg( 345 );

 my $twenty  = ordinate_to_bg( 20 );
 print "Ordinate of 20 is $twenty";

FUNCTION-ORIENTED INTERFACE ^

number_to_bg( $number )

 use Lingua::BG::Numbers qw(number_to_bg);
 my $depth = number_to_bg( 20_000 );
 my $year  = number_to_bg( 1870 );

 # in honor of Lingua::FR::Numbers, which I copied to start this
 # module, I'm using a French example
 print "Жул Верн написа ,,$depth левги под морето'' в $year.";

This function can be exported by the module.

ordinate_to_bg( $number )

 use Lingua::BG::Numbers qw(ordinate_to_bg);
 my $twenty  = ordinate_to_bg( 20 );
 print "Номер $twenty";

This function can be exported by the module.

DESCRIPTION ^

 See Lingua::Slavic::Numbers

BUGS ^

 See Lingua::Slavic::Numbers

COPYRIGHT ^

Copyright 2008, Ted Zlatanov (Теодор Златанов). All Rights Reserved. This module can be redistributed under the same terms as Perl itself.

AUTHOR ^

Ted Zlatanov <tzz@lifelogs.com>

SEE ALSO ^

Lingua::Slavic::Numbers, Lingua::EN::Numbers, Lingua::Word2Num

syntax highlighting: