|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re^3: 'our' is not 'my'by ikegami (Pope) |
| on Oct 26, 2007 at 16:09 UTC ( #647423=note: print w/ replies, xml ) | Need Help?? |
|
I prefer to think of our as the equivalent of no strict 'vars' for a single variable, but in reality, our creates a lexically-scoped variable aliased to a package variable. In effect,
Unlike blocks and files, packages aren't lexical scopes. Switching package neither destroys the our variable (because the our variable is lexically scoped) nor change to which package variable the our variable is aliased (because package doesn't know anything about the our variable).
In Section
Meditations
|
|
||||||||||||||||||||||||