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


in reply to Auto flock

Do be aware that file-locking (or the absence of it, except "advisory") is a significant operating-system specific difference, if you intend for this code to be even more-or-less "portable."