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

First if found the files ( after remembering that pwd gived the full path ) thank you very much all of you. But now it cant find methods in the file.
[Mon Dec 2 11:55:02 2002] plsregistration.cgi: Can't locate object me +thod "new" via package "MyModules::User" at plsregistration.cgi line +58. # Its in there: sub new { my $self = {}; $self->{user_id} = undef; #sets the account flag to true #this indicates that an account #does not currently exist $self->{new_account} = "1"; #error reporting and update vars $self->{error_type} = undef; $self->{error_html_string} = undef; bless ($self); return $self; } #and here is the calling code my $user = MyModules::User -> new(); #I tried it the other way as well and I got the same error #I made sure it was chmodded 755 as well as the directory #was 744

Replies are listed 'Best First'.
•Re: It cant find my methods
by merlyn (Sage) on Dec 02, 2002 at 17:12 UTC
Re: It cant find my methods
by perrin (Chancellor) on Dec 02, 2002 at 17:07 UTC
    That usually means a problem with the package statement, which you are not showing here.