Welcome to the Monastery | |
PerlMonks |
Re^2: Find number of items in a field multi-demensional arrayby huck (Prior) |
on Apr 26, 2018 at 19:08 UTC ( [id://1213632]=note: print w/replies, xml ) | Need Help?? |
While the prior replies are very good general answers, if you wanted to directly find the size of just the second array in the AoA @A you could use scalar(@{$a[1]}) where $a[1] is the reference to the second list and @{$a[1]} deferences that to an array and scalar(@{$a[1]}) takes the size of that. edit: opps i should have replied to the OP and not a reply, sorry 2018-05-16 Athanasius reparented to OP
In Section
Seekers of Perl Wisdom
|
|