Plankton has asked for the wisdom of the Perl Monks concerning the following question:
... error messages. My script test script looks like this ...Can't locate object method "new" via package "XYZ::ABC::Role::MyNewPkg +" (perhaps you forgot to load "XYZ::ABC::Role::MyNewPkg"?) at ./testM +yNewPkg.pl line 6.
What am I doing wrong here?#!perl use strict; use XYZ::ABC::Role::MyNewPkg; my $pkg = XYZ::ABC::Role::MyNewPkg->new(); print "okay\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't locate object method "new" via package MyNewPkg ...
by jhourcle (Prior) on Oct 05, 2007 at 17:11 UTC | |
by Plankton (Vicar) on Oct 05, 2007 at 17:20 UTC | |
|
Re: Can't locate object method "new" via package MyNewPkg ...
by Fletch (Bishop) on Oct 05, 2007 at 17:09 UTC |