You need to include the line: use Fcntl qw/:flock/; in your code to import the proper constants. (This is explained in the documentation for flock. See flock)
Are locks mandatory on Windows? If they're only advisory, as under unixish OSes, an exclusive lock may not help you.
In reply to Re: Lock on file
by duff
in thread Lock on file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |