This should have gone out as a reply to AdamK, but use.perl.org doesn't want to collaborate. Sorry Adam.
For sure, if there's one thing that's a pain is file locking. I have no recommendations for you, but recently for $work, I wrote a class for general file locking, not just a script (yes, I know, don't tell me).
For about 6-7 years I've been using Fcntl
and flock
without problems, but now it's different. I need to gracefully handle file locking even on NFS volumes and with many concurrent hosts that write on the same nfs share.
And yes, it's crazy. And no, File::NFSLock
doesn't work for me. LockFile::Simple
does, but needs to be tweaked, hence my class that extends and "fix" it... :)
Me too: any recommendations?