Do you know where your variables are? | |
PerlMonks |
Re: How do I access an array in a Module?by pjf (Curate) |
on Sep 13, 2008 at 08:51 UTC ( [id://711068]=note: print w/replies, xml ) | Need Help?? |
Since your variable is declared with my @EXTHDS, it's only visible until the end of the current file (or block or eval). This means that the Exporter module can't see it, which means that it can't export it. If you declare your array with our @EXTHDS then it becomes a package variable, which Exporter can see, and the rest of your code should work fine. All the best,
Paul Fenwick Perl Training Australia
In Section
Seekers of Perl Wisdom
|
|