in reply to foreach to for (related to my last question)
My best guess is that you're seeing the for loop in the second version terminate at the wrong time (either dying early or running past the end of %SEQ depending on the size of @codons) because you keep changing the value of $s. But that's just a guess as to how it's failing. If I'm wrong about the failure mode, then I'm most likely wrong about the cause as well.
|
|---|