Re: Help understanding DB_File and flock

2002-03-18 Thread Jenda Krynicky
From: "Jay M" <[EMAIL PROTECTED]> > I am attempting to modify a script that was coded back when perl 4.xx > was the current version. This script accesses databases using DB_File > and dbmopen(). After every dbmopen and dbmclose there is a flock(). > For example. > > dbmopen(%DB, $filename, 0777

Help understanding DB_File and flock

2002-03-18 Thread Jay M
Hi, I am attempting to modify a script that was coded back when perl 4.xx was the current version. This script accesses databases using DB_File and dbmopen(). After every dbmopen and dbmclose there is a flock(). For example. dbmopen(%DB, $filename, 0777) || die "Error: $!\n"; flock(DB,2); #i