Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: How do I access an array in a Module?

by pjf (Curate)
on Sep 13, 2008 at 08:51 UTC ( #711068=note: print w/ replies, xml ) Need Help??


in reply to How do I access an array in a Module?

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,


Comment on Re: How do I access an array in a Module?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://711068]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2014-07-12 19:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (241 votes), past polls