Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Finding the length of an array of arraysby KM (Priest) |
on Aug 17, 2000 at 23:40 UTC ( [id://28361]=note: print w/replies, xml ) | Need Help?? |
Well, if it is an array of arrays, the arrays will be flattened out like so:
If it is an array of array refs, you could do:
If it is another scenario, you should now be able to figure out your solution.
Cheers,
In Section
Seekers of Perl Wisdom
|
|