write_ld();
$dataf->close if $dataf;
+undef $dataf;
+
# move all the files along one
cycle_loop_data_files();
my $count;
while (my ($k, $v) = each %$now) {
- if ($last->{$k} ne $now->{$k}) {
+ if (!exists $last->{$k} || $last->{$k} ne $now->{$k}) {
$o{$k} = $v;
++$count;
}
sub cycle_loop_data_files
{
$dataf->close if $dataf;
+ undef $dataf;
rename "$datafn.oooo", "$datafn.ooooo";
rename "$datafn.ooo", "$datafn.oooo";