in reply to Re: Convert number into words
in thread Convert number into words

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

Replies are listed 'Best First'.
Re^3: Convert number into words -- solved
by pjofnj (Initiate) on Jun 01, 2005 at 18:21 UTC
    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";