![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re: Altering the inheritance path of an objectby zwon (Abbot) |
on Sep 27, 2012 at 15:16 UTC ( #996026=note: print w/replies, xml ) | Need Help?? |
You can create a new class with required inheritance path and rebless $obj to this class. Otherwise it is not possible, as inheritance defined by the value of @ISA package variable, and so it is property of the class and not an object.
In Section
Seekers of Perl Wisdom
|
|