Symbol::gensymSymbol::gensym does create its symbols in the Symbol:: package, but then removes them from the package, so when a returned symbol goes out of scope it does get garbage collected. If you think you get a leak doing this, report it as a bug, with a short test case.
In Perl is impossible to create a GLOB that exists only in the scope. Soo, gensym() creates a new GLOB at Symbol::GENx, where x is a number. Soo, it won't be cleanned when you go out of the scope. Again you will be just duplicating everything.
Also, your undefs of each type (and close of the file handle) should never be needed; if you can come up with a short test case that shows a problem, please report this as a perl bug also.
In reply to Re: Re: undefining one slot of a typeglob
by ysth
in thread undefining one slot of a typeglob
by AidanLee
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |