http://qs321.pair.com?node_id=1161956


in reply to Bioinformatics - Scoring DNA mutations

Also, I think part of the problem (as you described it) may be due to the lack of suitable formatting (spaces and/or tabs and/or newlines, plus maybe some descriptive labels) when you print things. Note the difference between these two snippets:
my @arr = ( -10, -5, -1, 0, 2, 6, 11 ); # mimicking to the OP code: for my $n ( @arr ) { print $n; } # being more detail-oriented: for my $n ( @arr ) { print "$n\n"; # include a newline after the value }