- or download this
my $col = "";
foreach my $key (keys %sampleValue){
...
}
chop($col);
print $col,"\n"; ## string of all the columns I am interested in
- or download this
my @cols = sort values %sampleValue;
- or download this
## Reading the sample Value file
while (<$IN>)
...
my @line = split "\t";
@line = @line[@cols]; # <-- Use array slice here
...