Jeff Pinyan writes .. >On May 14, Brian Shoemaker said: > >>The Perl 5 book I have says flock function doesn't work in >Windows systems. >> >>I don't want to create a lock file each time someone accesses >a file and >>then have to delete that lock. > >A rather clever way to emulate locking is to use mkdir() and rmdir(). > >Although it requires you to create a lock file, it's atomic and safe. are you sure ? .. just because it constitutes one Perl statement doesn't mean that it's atomic .. I suspect mkdir has several steps internally if you're sure then can you please provide references to the atomicity of mkdir .. because it's a great find if it's truly atomic - many peopl believe there to be no atomic file locking operation on Win9x machines -- jason king In South Carolina, merchandise may not be sold within a half mile of a church unless fruit is being sold. - http://dumblaws.com/