|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: More effective way to increase two elements of a list in parallel?by wade (Pilgrim) |
| on May 06, 2008 at 18:09 UTC ( #685023=note: print w/ replies, xml ) | Need Help?? |
|
I see a few things, here. First, you should always use:
But that's just general stuff. The big question I have is why use a while (especially with the -- eesh -- next statement) when an if is really what you want? Rewriting this using your (excellent) suggestion of the reformulated for:
gives, I think, a much clearer chunk of code
-- Wade
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||