in reply to Re: Importing variables (not functions) from in-file packages
in thread Importing variables (not functions) from in-file packages
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...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Importing variables (not functions) from in-file packages
by AnomalousMonk (Archbishop) on Feb 12, 2014 at 20:29 UTC | |
Re^3: Importing variables (not functions) from in-file packages
by Anonymous Monk on Feb 12, 2014 at 19:55 UTC |
In Section
Seekers of Perl Wisdom