http://qs321.pair.com?node_id=869393


in reply to Re^2: typeglob/symbolic reference question
in thread typeglob/symbolic reference question

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.