- or download this
while ($seq =~ /GCT/ig) { $GCT++; }
- or download this
while ($seq =~ /\G(?:...)*?GCT/sig) { $GCT++; }
- or download this
while ($seq =~ /\G(...)/sg) { $GCT++ if uc($1) eq 'GCT'; }
- or download this
while ($seq =~ /\G(...)/sg) { $counts{uc($1)}++; }
- or download this
my %counts;
++counts{uc($_)} for $seq =~ /.../sg;
...
print("\n");
}
}