in reply to The process cannot access the file because it is being used by another process?[Problem disappeared!]
I have also been unable to replicate this on my Win XP laptop. This appears to be some kind of weird Windows problem. The "answer" may some some kind of kludge that sets Window's brain straight? The DATA handle is a weird critter that is essentially a file handle to the current .pl program at a particular byte offset. I am wondering if you are able to seek (DATA,0,0) or die "seek failed $!"; prior to reading from DATA? This trick allows a Perl program to read itself. This might help "un-confuse" the file system, but because I can't replicate the problem, I have no way to test this. It is for sure a weird idea that shouldn't matter, but it might. oh, I'm using Perl 5.22 on a Win XP laptop.
|