Perl: the Markov chain saw | |
PerlMonks |
understanding my() and typeglobsby Ctrl-z (Friar) |
on Mar 16, 2003 at 12:36 UTC ( [id://243462]=perlmeditation: print w/replies, xml ) | Need Help?? |
pre-ramble: now, wanting that structure to be tied to a socket/pipe/file is not wholly unlikely - but regardless, a typeglob fits perfectly. When I create an anonymous typeglob - it looks something like this (courtesy Symbol.pm)
so, deleting the autovivified symbol table entry gets rid of the package global - but the symbol lives on in the blessed reference. Woah! So this got my tiny mind whirring... From the little I know, lexical variables dont get symbol table entries as they exist only on a "pad" - for the scope of whatever block they exist in. Fine. But within that block, are they still represented in the equivalent of a local temporary symbol?. That is, wherever Perl is keeping tabs on all my variables for this scope, does it model the same structure as the symbol table?
I guess my question/meditation would be twofold -
Back to
Meditations
|
|