"be consistent" | |
PerlMonks |
Re: Re: Re: Fun with two-dimensional arraysby George_Sherston (Vicar) |
on Aug 10, 2001 at 04:59 UTC ( [id://103725]=note: print w/replies, xml ) | Need Help?? |
Why not cycle through the top-level array, shifting off the bottom element in each sub-array? Something like
This has the merit that not only do you not need to code (or even initialise, or know) the number and length of sub-arrays, but they can also be of different lengths. § George Sherston
In Section
Seekers of Perl Wisdom
|
|