May 26, 2018
Lock your files with Path::Class::File
PathClassFileLockable uses simple files to indicate whether a file is locked or not.
It does not use flock, since that is unstable over NFS. Effort has been made to avoid race conditions.
PathClassFileLockable is intended for long-standing locks, as in a Subversion workspace. See SVNClass for example.