In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: > I'm having problems with corrupted data about every month or so. The problem >seems to be that the New file sometimes writes only about half the old file. >I was under the impression that flock would prevent the data from being >corrupted. Can anyone tel me what I am doing wrong, and what I should be doing >instead? > > > open(OLD,">$old") or die "Can't Open File: $!"; > flock OLD, 2; > open(NEW,$new) or die "Can't Open File: $!"; > flock NEW, 2; > while (<OLD>) { [snip]
Why don't you post the actual code since this obviously isn't it... -- Peter Scott http://www.perldebugged.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]