Jimbo,
The lock is not a file, it's something maintained by the operating system, just like in UNIX.
Have a look at the lock() function in the Perl documentation. The logic of what you're doing might look like this:
whilst I can't lock the file
begin
sleep for one second
end
Mike
Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884
It's like this; even samurai have teddy bears, and even teddy bears get drunk.