Do you why this does not work? For the number of lines that meet my conditions I want to make a hash of $mismatch and line number count. in this case a hash with key =3 and value some number. Because I am using strict it asks me to make $mismatch as my $mismatch.
If you make it to work. I need to loop through $mismatch from 1 to 20 and complete my hash keys as $mismtach and values are number of lines with each criteria set by $mismatch.
a hash like:
1 => 110000 2=> 50000 .. 20 => 1000
while(<INPUT2>){ chomp; my @current_line = split /\t/; my $mismatch =3; next unless $current_line[5] == 1 && $current_line[14] >= $m +ismatch; my $snp_chip_covered++; } my $snp_covered{$mismatch}= $snp_chip_covered;
In reply to Hash making by sesemin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |