my @dna = qw(A T C G); my $counter; foreach my $i (1..$#dna){ my $base = $dna[$i-1]; my $pair = $dna[$i]; print "$base$pair\n"; }
In reply to Re: loop and counter question
by artist
in thread loop and counter question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |