Just another way to do it:
my $dna = 'accatgagctgtacgtagcatctgagcgcgcatgactgtgactgacgtaggcagca'; my @windows = unpack 'A3' x length $dna, $dna; print "@windows";
Update:Sorry, ignore the above, I read the question too quickly.
dave
In reply to Re: substr help
by Not_a_Number
in thread substr help
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |