Gossamer Forum
Quote Reply
flock?
Hello

Is this code correct and complete?

open(UCR,">>$file");
flock(UCR,2);seek(UCR,0,0);
print UCR "$crt";
flock(UCR,8);

Will it work on any platform? It doesn't work on windows.... it generates blank files.
How can I lock both on windows and unix/linux?