Perhaps you want Symbol::delete_package? But see its caveats regarding any code using the module's subs and variables that was compiled after the old module was.
It also doesn't do the delete $INC{foo} for you, but if you are using do instead of require, that's ok.
In reply to Re: Unloading a module completely
by ysth
in thread Unloading a module completely
by holo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |