Counting needs two steps: Setting the counter to 0 before the loop and the incrementing step:
#Initialize the counter before the loop my $true_positives=0; while(<INPUT2>){ ... #instead of the push $true_positives++;
That's it, $true_positives has the number of positive results after the loop
In reply to Re^4: Reading two files, cmp certain cols
by jethro
in thread Reading two files, cmp certain cols
by sesemin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |