in reply to use base 'XYZ' and exporting

This is trivial to break:

require MyOOModule; use base 'MyOOModule';

Or just use the module in more than one place. Only the first place will have the potential to do this auto-import.

It'd make more sense to change your import() to be able to set the caller's inheritance:

use MyOOModule qw( -ISA ... );

Or however you want to name the option.

- tye        

Replies are listed 'Best First'.
Re^2: use base 'XYZ' and exporting (broken)
by japhy (Canon) on May 29, 2005 at 16:59 UTC
    Hrm, that's an interesting idea. That second idea will work for my purposes.

    Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
    How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart