As an aside, I hate inhererting from Exporter. My class does NOT have an ISA relationship with Exporter! (And inheriting an autoload? ouch!) Below is an alternative.
Instead of:
use vars qw( @ISA @EXPORT_OK %EXPORT_TAGS ); BEGIN { @ISA = qw( Exporter ); @EXPORT_OK = qw( ... ); %EXPORT_TAGS = ( ... ); # if necessary use Exporter; }
try:
use vars qw( @EXPORT_OK %EXPORT_TAGS ); BEGIN { @EXPORT_OK = qw( ... ); %EXPORT_TAGS = ( ... ); # if necessary require Exporter; *import = \&Exporter::import; }
Update: s/module/class/;
In reply to Re: "use base" or @ISA
by ikegami
in thread "use base" or @ISA
by uwevoelker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |