in reply to Convert number into words

Try on your command prompt
c:\> ppm install Lingua-Num2Word

``The wise man doesn't give the right answers, he poses the right questions.'' TIMTOWTDI

Replies are listed 'Best First'.
Re^2: Convert number into words
by pjofnj (Initiate) on Jun 01, 2005 at 17:37 UTC
    Thanks. it got installed (I think). Now when I run the script I get following error:

    Undefined subroutine &main::num2en_ordinal called at ConvertNumToWord.pl line 6

    . My program is as follows:
    use Lingua::EN::Numbers; #qw(num2en num2en_ordinal); my $x = 234; my $y = 54; #print "You have ", num2word($x), " things to do today!\n"; print "You will stop caring after the ", num2en_ordinal($y), ".\n";

    Thnks, PJ
      Thanks for you help guys.. here is the code, that I found somewhere online.
      use Lingua::EN::Numbers; use strict; my($numberObject); $numberObject = Lingua::EN::Numbers->new; $numberObject->parse(1234); print $numberObject->get_string . "\n";