in reply to dynamic inheritance
bikeNomad and I ran into this in his Class::Prototyped. The problem is indeed @ISA caching, and (to my knowledge) it wasn't fixed in 5.6.1. My workaround is:
delete ${"$package\::"}{'::ISA::CACHE::'};where $package is the name of the package containing the modified @ISA. Of course, you might find that CPAN module interesting...
Update: We ran into the problem while adding to @ISA, so my guess is that any changes are troublesome. It's been a while since I read the source, though.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: dynamic inheritance
by frag (Hermit) on Jan 31, 2002 at 16:31 UTC | |
Re: Re: dynamic inheritance
by steves (Curate) on Jan 31, 2002 at 18:41 UTC |