How does perl know how to find $Yakkity::Yak::a after the package's symbol table is gone?Because you have a compile-time reference to the typeglob associated with a, in the code print "a = $Yakkity::Yak::a\n"; undeffing the symbol table just removes a ref to the typeglob; the typeglob itslef continues to exist. At run-time, perl ops do not lookup variables in stashes; instead the ops contain a pointer to the typeglob.
Dave.
In reply to Re: Undefining symbol tables and globs and things, oh my
by dave_the_m
in thread Undefining symbol tables and globs and things, oh my
by friedo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |