Perl Monk, Perl Meditation | |
PerlMonks |
Re^3: typeglob/symbolic reference questionby ikegami (Patriarch) |
on Nov 04, 2010 at 02:39 UTC ( [id://869393]=note: print w/replies, xml ) | Need Help?? |
The symbol table entries are globs. They're associative arrays (like hashes) where the keys are data types. No, you're not grabbing what's in the glob slot of the glob, you're grabbing the glob itself. When you assign a reference to a glob, it gets assigned to the appropriate slot. *foo = []; assigns to the ARRAY slot; *foo = sub {}; assigns to the CODE slot.
In Section
Seekers of Perl Wisdom
|
|