more useful options | |
PerlMonks |
Re: looping over multiple arraysby chipmunk (Parson) |
on Jan 06, 2001 at 03:08 UTC ( [id://50168]=note: print w/replies, xml ) | Need Help?? |
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
|
|