print "$_ " for $dna =~ /(?=(..))/g;
If you have individual letters in an array, you could use:
print @dna [$_ - 1, $_], " " for 1 .. $#dna;
Abigail
In reply to Re: loop and counter question
by Abigail-II
in thread loop and counter question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |