I am also wondering how to do that. My scripts call multiple pre-loaded
modules that put heavy stuff in their proper lexical variables, which
seems to cause memory leaks, which results in consistent growth of
children's size. So I would love to "garbage-collect" whatever had been
put into lexical variables, at the end of each subroutine call.
Victor.
>> Behalf Of Matt Sergeant
>>
>> How can I completely unload a library and all memory
>> associated with it,
>> and unload any dso's connected with that library? For
>> example, say I use
>> XML::Parser in a <Perl> section - I don't want that hanging
>> around - it's a
>> big library, so I'd like to completely unload it - is it possible?
>>
>Any one have any thoughts on the above. I'd like to do
>this also. Was wondering if there were any ideas.