Ovid has asked for the wisdom of the Perl Monks concerning the following question:

Short answer: it depends. The flock function is advisory only. If a program does not check to see if a file is flocked, it will ignore any locks on it. Depending upon what you are trying to do, Win32::File may suit your needs. See also Fcntl