in reply to Hash making

You have quite a show-stopping issues.

Fixed:

my $snp_chip_covered; my %snp_covered; while (<INPUT2>) { chomp; my @current_line = split /\t/; next if $current_line[5] != 1 || $current_line[14] < 3; $snp_covered{++$snp_chip_covered} = '?????'; }

That was just the necessities. There's one major improvement you can make, though.

Fixed:

my @snp_covered; while (<INPUT2>) { chomp; my @current_line = split /\t/; next if $current_line[5] != 1 || $current_line[14] < 3; push @snp_covered, '?????'; }

Replies are listed 'Best First'.
Re^2: Hash making
by AnomalousMonk (Archbishop) on Sep 21, 2008 at 08:47 UTC
    ++ikegami for sheer, absolute patience.
Re^2: Hash making
by sesemin (Beadle) on Sep 21, 2008 at 05:06 UTC
    Thanks Ikegami, for fast response.

    Does the following construct make sense to have within a while loop?

    for (my $mismatch=0; $mismatch<=20; $mismatch++){ next unless $current_line[5] == 1 && $current_line[14] + >= $mismatch; $count++; } my $snp_covered{$mismatch}= $count;
      It doesn't even compile for reasons I've already explained.
      A reply falls below the community's threshold of quality. You may see it by logging in.