in reply to Re: Loading/Unloading Modules?in thread Loading/Unloading Modules?
You have to delete the filename and filepath from %INC for use or require to work:
use X2; print "Reusing X2\n"; delete $INC{'X2.pm'}; require X2; [download]