On Thursday, May 30, 2002, at 10:45 , sharan wrote: [..] > How to remove the loaded file, please help me with the following > > $a = "a/b/c1.pl" > require "$a"; > > Now c1.pl is overwritten, now new file need to be loaded. > > require "$a"; > > does not load new instance. How to remove previously loaded file.
lets start with the simple part here - yes you could do this if you wanted to try and WHACK a solution .... but let us step back and think about what we are really trying to do here???? if you are stashing 'configuration file stuff' in this c1.pl - and you want to change it around - why not have a function that you can call that will do this stuff for you...... Or why not simply do your 'caching of information' the old fashion way with a 'cache of information file' and then read and update as needed???? http://www.wetware.com/drieux/pbl/Sys/ParseConfigFile.txt In your case you would want to pass in a file name to read... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
