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


in reply to Auto flock

You could create a function called say openf which opens and locks a file, then simply go through the code and replace all the relevant open calls with openf calls.

A Monk aims to give answers to those who have none, and to learn from those who know more.