Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 having an uproarious good time at the Monastery: (6)
As of 2021-03-05 17:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (113 votes). Check out past polls.

    Notices?