XP is just a number | |
PerlMonks |
Re: Iterator for multidimensional arraysby Masem (Monsignor) |
on Mar 24, 2002 at 13:35 UTC ( [id://153888]=note: print w/replies, xml ) | Need Help?? |
Another possibility would be to have a single iteration loop from 0 to N1 * N2 * N3 *..., and on, and using mod functions on the index to figure out the positions within the array.
-----------------------------------------------------
In Section
Seekers of Perl Wisdom
|
|