Lingua::EN::Numbers::Easy

Hash access to Lingua::EN::Numbers objects
Download

Lingua::EN::Numbers::Easy Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Price:
  • FREE
  • Publisher Name:
  • Abigail
  • Publisher web site:
  • http://search.cpan.org/~abigail/

Lingua::EN::Numbers::Easy Tags


Lingua::EN::Numbers::Easy Description

Hash access to Lingua::EN::Numbers objects Lingua::EN::Numbers is a Perl module that translates numbers to English words. Unfortunally, it has an object oriented interface, which makes it hard to interpolate them in strings. Lingua::EN::Numbers::Easy translates numbers to words using a tied hash, which can be interpolated.By default, Lingua::EN::Numbers::Easy exports a hash %N to the importing package. This can be changed by giving use Lingua::EN::Numbers::Easy an argument - this argument is the name of the hash that will be used instead: use Lingua::EN::Numbers::Easy qw /%nums/;would use %nums as the tied hash.See also the Lingua::EN::Numbers man page.Lingua::EN::Numbers::Easy caches results - numbers will only be translated once.Any other operation on the exported hash than fetches will throw an exception.SYNOPSIS use Lingua::EN::Numbers::Easy; print "$N{1} fish, $N{2} fish, blue fish, red fish"; # one fish, two fish, blue fish, red fish. Requirements: · Perl


Lingua::EN::Numbers::Easy Related Software