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


in reply to Writing to a log file without colliding

It should be mentioned that using locks over NFS is bound to end in disappointment, but then again, maybe you aren't. :-)

May work if you are using some new-fangled NFS version, though.