Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Re: Our, use vars, and magic, oh my!by arturo (Vicar) |
on Aug 23, 2001 at 18:14 UTC ( [id://107331]=note: print w/replies, xml ) | Need Help?? |
The fact that a variable is lexically scoped doesn't imply anything about the internal implementation. Lexical scoping is more a matter of syntax than anything else. According to the man page perlfunc:our or perldoc -f our, you can see that what the package Foo; our $foo; declaration does is get the interpreter to see occurrences of $foo unadorned, as it were, as occurrences of $Foo::foo, so it's a plain ol' package global:
HTH
In Section
Seekers of Perl Wisdom
|
|