http://www.perlmonks.org?node_id=869165


in reply to Re: Lock File
in thread Lock File

As discussed in Ensuring only one copy of a perl script is running at a time, be aware that this trick works on Unix (with advisory locking), but does not work on Windows (mandatory locking).