flock works great on Windows, as long as all programs accessing the file also use flock. Activestate simulates flock on Windows. The only problem you will have with flock is if you access the file outside of perl, or don't call flock in one of your scripts (perl won't check to see if the file is locked unless you call flock at some point).