|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: looping over multiple arraysby chipmunk (Parson) |
| on Jan 05, 2001 at 22:08 UTC ( [id://50168]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Very nice. There is one addition that I would suggest; allowing for parallel undefs in the arrays. Otherwise the iterator will reset if all the arrays happen to contain undef at the same index, even if there are more elements later in the arrays. Here's one possible solution:
In Section
Cool Uses for Perl
|
|
||||||||||||||||||||||||||||