On Fri, Jul 10, 2009 at 00:58, Travis
Thornhill<madslashers2...@yahoo.com> wrote:
snip
> Can't locate object method "new" via package "myMod" (perhaps you forgot to 
> load "myMod"?) at uses_Mod.pl line 11.
snip
> my $obj = myMod->new(); # <----- THIS IS THE LINE THAT ERRORS
snip
> package Mod::myMod;
snip

The package is named Mod::myMod, but you are using a package named
myMod.  Change one or the other, I would suggest:

my $obj = Mod::myMod->new;

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to