Martin wrote:
>
> $author = "[EMAIL PROTECTED]" ;
> >
> > I would like to be able to load a perl module, do whats need to be done,
> > then unload the module again.
> >
> > How would I do this?
>
> you don't need to. the interpreter unloads the module from memory when the
> last instance of it is last used or the last call is made to one of it's
> functions. it works similar to the garbage collection on variables...
I'm fascinated. How does perl predict the future to accomplish this
amazing feat?
Me thinks you might be confusing perl modules with variables. Variables
are reference counted storage units that are freed once their reference
count reaches zero.
AFAIK, there is no easy way to unload a perl module. Once a module is
loaded (i.e. use ModuleName), the module is stashed in a global symbol
table. One could theoretically write some perl to find the module in the
global symbol table and delete.
Why does [EMAIL PROTECTED] want to do this?
cheers
rickw
--
_________________________________
Rick Welykochy || Praxis Services
Either you think, or else others have to think for you and take power from
you, pervert and discipline your natural tastes, civilize and sterilize you.
-- F. Scott Fitzgerald
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug