our $data;
our @data_headers;
+open(my $duplicate_fh, '>', 'duplicate.csv');
+
foreach my $val ( 1 .. 4 ) {
my $file = "$val.csv";
warn "# $file\n";
print "DUPLICATE $key_id $num $val old elements=", $#{ $data->{$key_id}->{$num}->{$val} }, "new ", $#$row, $/;
my $diff;
my $old = $data->{$key_id}->{$num}->{$val};
+ print $duplicate_fh join(',', $file, @$old), "\n";
+ print $duplicate_fh join(',', $file, @$row), "\n";
foreach ( 0 .. $#$row ) {
if ( $old->[$_] ne $row->[$_] ) {
$diff->[$_] = [ $old->[$_], $row->[$_] ];
close $out_fh;
print "\n", -s $out_file, " bytes created\n";
+close $duplicate_fh;
+