I have a Perl script that I’d like to run on Windows, using either Strawberry Perl or ActivePerl; I don’t care which. This script however, uses flock() calls, which does not seem to be included in either of those versions of Perl.
Can anyone help get this up and running?
Is the Fcntl module installed? Try this:
If it complains, you don’t have the Fcntl module installed. If it doesn’t complain, then you have access to Fcntl::flock, so put this in your script:
and off you go.