On Tue, 7 Dec 1999, Matt Sergeant wrote:
> 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?
how about:
delete $INC{'XML/Parser.pm'};
Apache::PerlRun->flush_namespace('XML::Parser');
for .so's you might be able to pull some stunts with DynaLoader, but I
haven't tried that.