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.
In Section
Seekers of Perl Wisdom