in reply to Am I doing something wrong with Exporter?

@ISA and %EXPORT_TAGS must be package variables — globals. Otherwise, Exporter simply would never have access to them. Lexicals just won't work. Drop the "use strict" and both the instances of "my", and it works.

If you want to keep using strict, replace "my" with "our", or, if you want it to work on older perls too, add a line

use vars qw(@ISA %EXPORT_TAGS);
and there is no longer a need for use of "our".

Replies are listed 'Best First'.
Re^2: Am I doing something wrong with Exporter?
by wtd (Initiate) on Dec 05, 2004 at 01:48 UTC
    Thank you.