- or download this
'A' => 1,
'G' => 2,
'AG' => 1,
'GG' => 1,
'AGG' => 1,
- or download this
use warnings; use strict;
...
next unless defined $rolling[0];
$count{join('',@rolling)}++; #three-char count
}
- or download this
my @chars = qw[A C G T];
for my $aleph (0..$#chars) {
...
}
}
}
- or download this
60 wallclock secs (59.19 usr + 0.03 sys = 59.22 CPU) @ 0.02/s (n=1)
- or download this
for ( reverse(0..$#rolling) ) {
next unless defined $_-@rolling;
$count{join('',@rolling[$_-@rolling,-1])}++;
}