in reply to dividing numbers
As for the result, do not use double quotes around arithmetical operations. With the hash suggested above you can just:my %count_of; if (/([ACDEFGHIKLMNPQRSTVWY])/) { $count_of{$1}++ }
print RESULT join ' ', $id, map $count_of{$_}/$tt, qw/A C D E F G H I K L M N P Q R S T V W Y/ +; print "\n";
|
|---|