file locking

Andrew Gray agray at
Sun Jan 20 18:01:23 CST 2002

My thanks to Nathan and Scott for their replies to mys last question
regarding hash tables and sorting.

I now have another more generic question.
What is the 'best' way to implment file locking to a  multiple access file,
from perl.

in the past I have just created a 'lock' file (`touch lock`; do stuff;
`rm -f lock`)
but the must be a more elegant solution than this :)


Andrew Gray
Systems Administrator, NetConnect Communications
sysadmin at

More information about the Melbourne-pm mailing list