in reply to Mixing @EXPORT and use base
And, yes, I'm aware of Spiffy, but I'd prefer something that's a little lighter-weight.Smells at the Spiffy docs... Oh my... Brian Ingerson has finally gone completely mad!
You can also use the traditional use base 'MySpiffyBaseModule'; syntax and everything will work exactly the same. The only caveat is that Spiffy.pm must already be loaded. That's because Spiffy rewires base.pm on the fly to do all the Spiffy magics.I don't think the semantics you want are easy to achieve, and might trip up other modules in the process. Also, I'm curious why you don't use class methods and inheritance. It might look more complicated, but if you store the classname in a varible, it tends to be pretty short anyway.
example:
Only 1 character more...my $f = 'Foo'; $f->external();
If I'm missing something here, please tell me.
J.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Mixing @EXPORT and use base
by bmcatt (Friar) on Jul 07, 2004 at 18:38 UTC | |
by Joost (Canon) on Jul 07, 2004 at 18:42 UTC |