in reply to Re: difference between "use base" and @ISA?
in thread difference between "use base" and @ISA?

@ISA = ('Foo'); will destroy whatever was already in @ISA and will surely break a lot of other things depending on that array.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Replies are listed 'Best First'.
Re^3: difference between "use base" and @ISA?
by sgifford (Prior) on Aug 25, 2005 at 16:16 UTC
    My understanding has always been that @ISA is a package global, so the only way it would have something in it is if it were set elsewhere in the same package, which would be a pretty strange thing to do. In other words, it's safe to overwrite it in your own package. I think friedo's code is fine, but I'd be happy to learn otherwise if there's something I'm missing.