Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Can't locate object method "new" via package "Test" at ./pud.pl line 5.
  • Comment on Can't locate object method "new" via package "Test"

Replies are listed 'Best First'.
Re: Can't locate object method "new" via package "Test"
by mla (Beadle) on Apr 03, 2002 at 02:35 UTC
    There's a standard module named Test. Check your @INC. It's probably finding the standard Test first, loads it, and then complains that it doesn't have a new() method.

    Try adding use lib '.'; to your script, or rename your module.