Output:use YAML; my %count_per_100k; while (<DATA>) { my ($text, $count) = split; next unless $text =~ /gene/; $count_per_100k{int($count / 100_000)}++; } print Dump \%count_per_100k; __DATA__ ...
At least, I think that's your question. Perhaps you want to do something different.--- 0: 14 1: 18 2: 1
In reply to Re: Howto count elements within an interval
by JavaFan
in thread Howto count elements within an interval
by lomSpace
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |