Skip to content

Commit 65410a2

Browse files
committed
find_unmatched_corids script now also lists the number matched
1 parent 2e6dbaa commit 65410a2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/find_unmatched_corids.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
$i=0;
1616

1717
%corid;
18+
$nmatched=0;
1819

1920
while(<IN>){
2021
$line=$_;
@@ -31,6 +32,7 @@
3132
if(exists $corid{$1}){
3233
delete $corid{$1};
3334
print "Matched $1\n";
35+
$nmatched+=1;
3436
}else{
3537
$corid{$1} = 1;
3638
print "Added $1\n";
@@ -57,6 +59,7 @@
5759
close(IN);
5860

5961
$nunmatched=scalar keys %corid;
62+
print "--------$nmatched matched corids\n";
6063
print "--------$nunmatched unmatched corids\n";
6164

6265
foreach $id (keys %corid){

0 commit comments

Comments
 (0)