Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Importing variables (not functions) from in-file packagesby AnomalousMonk (Archbishop) |
on Feb 12, 2014 at 16:12 UTC ( [id://1074644]=note: print w/replies, xml ) | Need Help?? |
Your original code seems to work as long as the scalar $globalVar is exported using its correct name, i.e., using the $ sigil.
In Section
Seekers of Perl Wisdom
|
|