Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

un-require?

Status
Not open for further replies.

eswhite

Programmer
Jul 6, 2000
18
US
Does anyone know of a way to un-require a file that has been required. I would like to require a file from one directory on the fly, un-require it, and then require a file from another directory with the same name as the first. I have tried deleting the hash entry in %main::, including the _< ... filename, but I cannot re-create the namespace for the second require.

Thanks,
Eric

 
use module;

...

no module;

...

i don't know if this will work in your case, but i think this is what 'no' is for. &quot;If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top