now I have two typeglobs pointing to same address
No, you have two references pointing to the same (ie a single) typeglob. undef $a causes one of the references to the typeglob to be freed (the typeglob itsself is not yet freed, since $b still contains a reference to it).
If in addition you do undef $b, then the typeglob will be freed. But it's not clear to me what you are actually trying to achieve.
Dave.
In reply to Re: How to remove the actual glob from a glob reference
by dave_the_m
in thread How to remove the actual glob from a glob reference
by targetsmart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |