Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

It cant find my methods

by Angel (Friar)
on Dec 02, 2002 at 17:04 UTC ( [id://216969]=perlquestion: print w/replies, xml ) Need Help??

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://216969]
Approved by broquaint
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (None)
    As of 2024-04-25 01:33 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found