go ahead... be a heretic | |
PerlMonks |
Re^3: Importing variables (not functions) from in-file packagesby AnomalousMonk (Archbishop) |
on Feb 12, 2014 at 20:29 UTC ( [id://1074684]=note: print w/replies, xml ) | Need Help?? |
Isn't $globalVar (when not defined as a lexical variable) just a shortcut for the (main) package variable $::globalVar aka $main::globalVar?
It is a 'shortcut' only if you make the lexical declaration
In Section
Seekers of Perl Wisdom
|
|