Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
# @dna contains the sequence foreach my $base (@dna) { print "$base\n"; ++$counter; my $pair = @dna1[$counter-1]; print "$pair"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: loop and counter question
by Mr. Muskrat (Canon) on Feb 25, 2003 at 14:13 UTC | |
|
Re: loop and counter question
by artist (Parson) on Feb 25, 2003 at 14:00 UTC | |
|
Re: loop and counter question
by Abigail-II (Bishop) on Feb 25, 2003 at 13:51 UTC | |
by Anonymous Monk on Feb 25, 2003 at 14:09 UTC | |
by Abigail-II (Bishop) on Feb 25, 2003 at 14:38 UTC |