Do you know where your variables are? | |
PerlMonks |
Re: Packages, scope, and lexical variablesby Zaxo (Archbishop) |
on Mar 08, 2005 at 07:13 UTC ( [id://437435]=note: print w/replies, xml ) | Need Help?? |
Lexicals have file and block scope. Because they are not in the global symbol table, they are never identified with a namespace. Instead they live in a scratchpad which is created when a lexical scope is introduced. Nothing prevents someone from adding functions to your namespace. That could be viewed as a feature ;-) After Compline,
In Section
Seekers of Perl Wisdom
|
|