On Mon, 06 Feb 2006 11:36:49 -0500, DZ-Jay wrote: > I've been using for a while the locking mechanism for DBM files > described in the Perl Cookbook, recipe 14.5, basically, locking the > filehandle returned by tie: > > $db = tie(....) > $fd = $db-fd; > open(DB_FH, "+<&=$fd") or die(...); > flock(DB_FH); > ... > > But I have read somewhere that this is not really a good idea > (though i forgot why).
http://search.cpan.org/~pmqs/DB_File-1.814/DB_File.pm#Locking%3A_The_Trouble_with_fd -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/ _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
