Hi monks.
I'm having trouble exporting symbols to one module, but not another, and was hoping that in your infinite wisdom, you could guide me.
In module Mod, I've got this:
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');
}
Then in App - the main application:
use Mod qw(:all);
Foo()
And finally, in package Mod::Sub
package Mod::Sub
use 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?
Thanks in advance,
James