I need to ape a module of some existing code. I thought I could just get away with copying a existing module and change a few things in it and away I go, but I hit a snag ... I keep getting ...
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.
... error messages. My script test script looks like this ...
my $pkg = XYZ::ABC::Role::MyNewPkg->new();
What am I doing wrong here?