$stat->{new}++;
- seek $marc_fh, $last_offset, 0;
- read $marc_fh, my $marc, $offset - $last_offset;
+ seek $marc_fh, $offset, 0;
+ read $marc_fh, my $marc_len, 5;
+ seek $marc_fh, $offset, 0;
+
+ read $marc_fh, my $marc, $marc_len;
print $import_fh $marc;
warn "# NEW ", join(' ', map { $row{$_} } qw(biblionumber title)), "\n";
# warn "# NEW $biblionumber\n";
$stat->{missing}++;
}
- $last_offset = $offset;
-
}
warn "# files left ", dump($files);