in reply to undef a Module

I don't know if it helps, but have you tried simply to make the following?:
use MyLib1; use MyLib2; <my code here> no MyLib1; <my code here> no MyLib2; <more code here>
Regards, turo
perl -Te 'print map { chr((ord)-((10,20,2,7)[$i++])) } split //,"turo"'

Replies are listed 'Best First'.
Re^2: undef a Module
by chromatic (Archbishop) on Jan 21, 2010 at 19:52 UTC

    I'm unaware of any modules where that would help. no calls the given module's unimport() method, which (in theory) could free a lot of memory, but that's likely to be minimal (usually it toggles some lexical hints at compilation time) and it'll free that memory back to Perl, not the OS.