Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: OOP introspectionby haukex (Archbishop) |
on Apr 03, 2021 at 08:32 UTC ( [id://11130761]=note: print w/replies, xml ) | Need Help?? |
LanX has already pointed you to @ISA. Note that if this is about method resolution order, see mro, for example it provides a mro::get_linear_isa($classname) function that may be useful. Also in the case of composition how can I find out which class depends on which class? Or what kind of objects can be injected in the constructor of an other object? I'm not sure I understand, could you illustrate these questions with code?
In Section
Seekers of Perl Wisdom
|
|