![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re^2: Importing variables (not functions) from in-file packagesby puterboy (Scribe) |
on Feb 12, 2014 at 19:14 UTC ( #1074669=note: print w/replies, xml ) | Need Help?? |
Cool. It does indeed work. But why does strict cause the compiler crap-out on $globalVar but accept $::globalVar. Isn't $globalVar (when not defined as a lexical variable) just a shortcut for the (main) package variable $::globalVar aka $main::globalVar? Or is the "shortcut" only known at runtime...
In Section
Seekers of Perl Wisdom
|
|