file locking

Andrew Gray agray at netconnect.com.au
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 :)


regards

Andrew Gray
Systems Administrator, NetConnect Communications
sysadmin at netconnect.com.au





More information about the Melbourne-pm mailing list