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?? |
> 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
In Section
Seekers of Perl Wisdom
|
|