The stupid question is the question not asked | |
PerlMonks |
Re: creating referencesby ikegami (Patriarch) |
on Aug 22, 2009 at 04:05 UTC ( [id://790534]=note: print w/replies, xml ) | Need Help?? |
*foo is a typeglob, or glob for short. It is the part of the symbol table that holds the variables associated with a name. Since the symbol table contains the package variables, the variables a glob contains are package variables (often called global variables). my creates lexical variables. They're stored in the current function's pad, not the symbol table.
In Section
Seekers of Perl Wisdom
|
|