Jul 3, 2000, 12:50 PM
Post #1 of 4
Hi am new to the forums. I have been programming in PERL for about a year now and I have failed to find very much information about locking down files. In the PERL Cookbook it talks extensively about using FLOCK, but I have seen other PERL programmers who do not use FLOCK, but instead write their own flocking routine. Typically they create a temp file, work with that file and then the drop the lock. Two specific examples I am thinking of our Matt wrights counter script, and bignosebird.com uses his own file locking routine instead of using FLOCK. My question is: is there an advantage to using FLOCK as opposed to writting your own file locking routine?
"A food lover's link to professional chefs"