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;
In reply to Re^2: Loading/Unloading Modules?
by chromatic
in thread Loading/Unloading Modules?
by toobored
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |