#!/usr/bin/perl
use warnings;
use strict;
my $number = 10;
my @seqs = qw ('AAAAAAAAAAAAAAAAAAAAA' 'TTTTTTTTTTTTTTTT' 'ATCGTGAGGTGTCCAAGT');
for my $seq (@seqs){
my $flag = 0;
for my $nt (qw / 'A' 'T' 'C' 'G'/ ){
if ($seq =~ /$nt{$number,}/){
$flag = 1;
}
}
if (! $flag){
print $seq,"\n";
}
}
--
---------------------------------------------------------------------------------------------
PhD Candidate in Plant Biology
Department of Botany and Plant Sciences
University of California, Riverside
#!/usr/bin/perl
use warnings;
use strict;
my $number = 10;
my @seqs = qw (AAAAAAAAAAAAAAAAAAAAA ATCGTGAGGTGTCCAAGT);
for my $seq (@seqs){
my $flag = 0;
for my $nt (qw /A T C G/ ){
if ($seq =~ /\Q$nt\E{\Q$number\E,}/){