Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: OOP introspection (inheritance)

by LanX (Saint)
on Apr 02, 2021 at 21:28 UTC ( [id://11130742]=note: print w/replies, xml ) Need Help??


in reply to OOP introspection

> Is there a way to get all the hierarchy of the classes of an object? (No Moose etc,just classic OO Perl) say A->B>C , examining C gives A and B as parents.

@ISA is a package var, i.e. globally accessible.

So start iterating over @C::ISA and continue recursively?

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

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

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

      No recent polls found