in reply to Re: Best way to do Mixin Class
in thread Best way to do Mixin Class

Is it a good idea/possible to modify @ISA at run-time? I guess as long as you don't "use base ..."

Replies are listed 'Best First'.
Re: Re: Re: Best way to do Mixin Class
by ariels (Curate) on Apr 07, 2002 at 04:15 UTC

    It's the traditional way (sorry, at least my 5.004 roots are showing). What I do is well-documented, e.g. in perlboot or perltoot.

    As long as you don't change @ISA while doing important stuff, it should be OK. But note the warning about changing @ISA in perlobj!

    In any case, using base can't be bad for you...