in reply to Number to Speech

If you want cardinal numbers, that's Number::Spell, as already pointed out. If you want ordinal numbers, that's Lingua::EN::Nums2Words:
use Lingua::EN::Nums2Words; print num2word_ordinal(1251), "\n";
which yields 'ONE THOUSAND, TWO HUNDRED FIFTY-FIRST'.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
RE: RE: Number to Speech
by princepawn (Parson) on Aug 22, 2000 at 22:55 UTC
    Look at the categorization of those modules. How easy would they have been to find? Regardless of what the actual names for them were, it would have been ideal for them to have the following logical names to facilitate searching:
    1. Number::Spell::Cardinal
    2. Number::Spell::Ordinal

    I am always keeping track of the difficulties in finding things in the Perl community and appreciate this post by merlyn, which adds yet another rung to my soapbox...

    Of course, the bigger question is how best to solve this quandry, and I think the best thing is to simply keep observing the difficulties and eventually flesh out an answer as more detail develops.

      This is a bigger problem that probably deserves either a full front page posting of it's own or ever it's own website.

      At the very least a keyword table for every module to give the searcher a better chance of finding the right one would help. Maybe a keywords.txt added to every module tar that CPAN websites and scripts could parse out. Or a POD "=begin keyword" section.

      What you mention is a more appealing and yet dangerous approach, actually listing modules under aliases in CPAN. It pollutes the namespace horribly but requires only a minor change in current behavior.

      Of course the ideal fix would be to start a site where you could ask other experts what modules might best fit your needs... =P

      --
      $you = new YOU;
      honk() if $you->love(perl)