Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: global variable in a packageby mikeock (Hermit) |
on Jan 02, 2006 at 20:17 UTC ( [id://520448]=note: print w/replies, xml ) | Need Help?? |
Maybe you should look how the variable is being declared.. From what I can gather, you should declare it in the package as a my %hash.
From there you then declare an our within the sub or whatever is using the hash. Camel -> pg 134 "Our never creates values; it just exposes a limited form of acces to the global, which lives forever.
In Section
Seekers of Perl Wisdom
|
|