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


in reply to Re^2: Ensuring only one copy of a perl script is running at a time
in thread Ensuring only one copy of a perl script is running at a time

The fact that locking behaviour differs in general by platform is not relevant because (see manual link labelled 'it' in earlier reply) flock deliberately uses its own advisory locking irrespective of platform precisely for such reasons of portability.

-M

Free your mind