Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.
Try as I might, I can't get two instances of a class to have different inheritance trees at the same time. @ISA is a package variable, so changing it affects all instances. Hmm, can @ISA be tied? You'd have to invalidate the cache every time you did anything and this would be bad, wicked, evil, wrong, etc., but I'm still curious to know if it can be done.
Or
ACME::DiddleMyInc needs to be written!
Talking to Myself (Score:2)
The closest I've come up with so far is this:
Full power...now sir. (Score:1)
life is short
Re: (Score:2)
Yeah, we were talking about that here at work. It would have solved an annoying little problem here (well, more of a hack to get around some buggy CPAN code).
well... (Score:1)
This would not affect @ISA, though, if you need that to work.
rjbs
why? (Score:1)
Re: (Score:2)
Note the Acme:: prefix on the suggested namespace.
use Moose (Score:1)
Re: (Score:1)
That would be my angle of attack also.
What EXACTLY are you trying to do... (Score:1)
@ISA is just an array store used by the default implementation of the ->isa method to determine is something isa something else, and by the method resolved.
If you want to fake being an object, them perhaps just overload ->isa?
Or then there's a Decorator object...
I'm not sure why making objects do weird things needs to involve @ISA.
Re: (Score:2)
It's not that I want to have different instances with different inheritance trees. I just want to know if it can be done. It's a matter of curiosity, that's all.