in reply to Does Symbol::delete_package free memory used by subs?

It looks like yes, otherwise this would be the same as reset.

Other points of interest. If the code was stored as a coderef, it would disappear when you cleared the var. If worse came to worse you could fork, block, and do your thing in the child, have the child exit, and the parent continue.

  • Comment on Re: Does Symbol::delete_package free memory used by subs?