Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Finding inherited object methods

by snopal (Pilgrim)
on Jun 12, 2008 at 13:03 UTC ( #691647=perlquestion: print w/replies, xml ) Need Help??

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

Given an object $foo, and an inherited method $foo->bar(), how can I determine the CLASS providing the method bar() to $foo?

Replies are listed 'Best First'.
Re: Finding inherited object methods
by apl (Monsignor) on Jun 12, 2008 at 13:35 UTC
    Take a look at the Perl ISA package.
Re: Finding inherited object methods
by Anonymous Monk on Jun 12, 2008 at 13:33 UTC
    you aren't supposed to care :) but perldoc UNIVERSAL
Re: Finding inherited object methods
by chromatic (Archbishop) on Jun 12, 2008 at 17:05 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2020-10-26 16:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (252 votes). Check out past polls.

    Notices?