|Perl: the Markov chain saw|
Moving a reference file.by dwatson06 (Friar)
|on Jul 23, 2002 at 19:30 UTC||Need Help??|
dwatson06 has asked for the
wisdom of the Perl Monks concerning the following question:
I am referencing a file that I move after it has been referenced by the perl script. For some reason when I call the command rename and move the file, the file still exists at the old location also. I'm assuming that the computer is holding my reference to that file (Even though I closed it.) and will not let me clear it out of the directory.
This file must be cleared out.
Is there another way to assure the file is removed? Will the unlink command override my reference to it?