jbeninger has asked for the wisdom of the Perl Monks concerning the following question:
Then in App - the main application:package Mod; require Exporter; BEGIN { use vars qw(@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); %EXPORT_TAGS = (all => [qw(Foo Bar)]); @ISA = qw(Exporter); Exporter::export_ok_tags('all'); }
And finally, in package Mod::Subuse Mod qw(:all); Foo()
The final example (Mod::Sub) doesn't work - (Undefined subroutine &Mod::Sub::Foo...) Is there some problem stemming from including "parent" modules, or is this some unrelated problem?package Mod::Sub use Mod qw(:all); Foo()
Thanks in advance,
James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Module/export problems
by PodMaster (Abbot) on Jun 18, 2003 at 05:07 UTC | |
by jbeninger (Monk) on Jun 18, 2003 at 17:41 UTC | |
by PodMaster (Abbot) on Jun 19, 2003 at 09:11 UTC |