Thread: Locking files in Perl/CGI
Results 1 to 4 of 4
data files location and permission to access from perl cgi script for writing Forum: CGI Perl ForumReplies: 1
How can i execute a perl file within perl programming... Forum: CGI Perl ForumReplies: 1
Table locking? Forum: HTML ForumReplies: 3
01-17-2001, 07:39 AM #1
Locking files in Perl/CGI
I'd like to know whether I should use 'lock()' function when I use construction dbopen(%hash, DataBase,0666) under multi-tasking enviroment ?? Or Perl's engine does it by itself ??
01-17-2001, 05:40 PM #2
I am still learning about perl, give me some time and I will find an answer for you.
01-17-2001, 09:46 PM #3
I talked with Enigma from The Cult Forums She is always a big help when it comes to perl.
Yes you would need to use some kind of locking. For more information you may find this link helpful http://www.perl.com/pub/doc/manual/html/lib/DB_File.html
[This message has been edited by Dave (edited 01-17-2001).]
01-18-2001, 07:57 AM #4
Thanx Dave, I followed your link and found some usefulinfo. But, in that example is shown using of DB_File structure. I meant using general Perl's DBM file.I've never seen an example of using lock () in DBM file.
I'll try to contact with ENIGMA abt this metter