- or download this
use strict;
use warnings;
...
open (NEW, "<pcs_new.csv");
my %old; # where pc numbers will get stored...
- or download this
while (<OLD>) {
chomp;
...
$pc =~ s/"//g; # get rid of the quotes
$old {$pc} = 1; # make an entry in the hash
}
- or download this
while (<OLD>) {
chomp;
...
# and cleanup
close (OLD);
close (NEW);