Subject: | Can't locate object method "new" via package "Alternative" |
I'm trying to get this working and I keep getting errors with the sample code:
--------------------------------------------------------------------
use Lingua::Spelling:Alternative;
my $en = new Alternative;
$en->load_affix('/usr/lib/ispell/english.aff') or die $!;
print $en->alternatives("cars");
---------------------------------------------------------------------
First, notice the missing second ":" in the "use" line b/t "Spelling" and "Alternative". I fixed that, and then started getting another error:
Can't locate object method "new" via package "Alternative" (perhaps you forgot to load "Alternative"?) at speller.pl line 13.
I can see the Alternative.pm
[carric@mandanga carric]$ perl -v
This is perl, v5.8.0 built for i386-linux-thread-multi
Copyright 1987-2002, Larry Wall
[carric@mandanga carric]$ uname -a
Linux mandanga.home.com2usa.com 2.4.18-19.8.0 #1 Thu Dec 12 05:39:29 EST 2002 i686 i686 i386 GNU/Linux