perlfaq nodetype
faq_monk
<P>
Some possible reasons: your inheritance is getting confused, you've
misspelled the method name, or the object is of the wrong type. Check out [perlman:perltoot|the perltoot manpage] for details on these. You may also use <CODE>print
ref($object)</CODE> to find out the class <CODE>$object</CODE> was blessed into.
<P>
Another possible reason for problems is because you've used the indirect
object syntax (eg, <CODE>find Guru "Samy"</CODE>) on a class name before Perl has seen that such a package exists. It's
wisest to make sure your packages are all defined before you start using
them, which will be taken care of if you use the <U>use</U> statement instead of
<U>require</U>. If not, make sure to use arrow notation (eg,
<CODE>Guru->find("Samy")</CODE>) instead. Object notation is explained in
[perlman:perlobj|the perlobj manpage].
<P>
Make sure to read about creating modules in [perlman:perlmod|the perlmod manpage] and the perils of indirect objects in [perlman:perlobj|WARNING].
<P>