in reply to Re: undefining one slot of a typeglob
in thread undefining one slot of a typeglob
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: undefining one slot of a typeglob
by gmpassos (Priest) on Feb 24, 2004 at 20:00 UTC | |
by ysth (Canon) on Feb 25, 2004 at 01:28 UTC | |
by ambrus (Abbot) on Feb 25, 2004 at 15:31 UTC |