in reply to Can't locate object method "new" via package MyNewPkg ...

First thing off the top of my head:

Check the 'package' line in your module, and make sure that it _exactly_ matches (including case) the name in the 'use' statement.

I typically run into this after I've decided to rearrange some files, or I typo on a case-insensitive file system (so it finds the module, but the name doesn't match)

  • Comment on Re: Can't locate object method "new" via package MyNewPkg ...

Replies are listed 'Best First'.
Re^2: Can't locate object method "new" via package MyNewPkg ...
by Plankton (Vicar) on Oct 05, 2007 at 17:20 UTC
    Doh! That was it thanks! ... I have come to realize... I can deny it no longer! I am small.