Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Find number of items in a field multi-demensional array

by huck (Prior)
on Apr 26, 2018 at 19:08 UTC ( [id://1213632]=note: print w/replies, xml ) Need Help??


in reply to Find number of items in a field of a multi-demensional array

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1213632]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 22:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found