Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Count of HoA elements

by ikegami (Patriarch)
on Jan 19, 2007 at 20:31 UTC ( [id://595580]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Count of HoA elements
in thread Count of HoA elements

He asked for the number of elements in the HoA. I took that to mean 5 for the following structure:

my %h = ( k1 => [ qw( a b c ) ], k2 => [ qw( d e ) ], );

Your solution simply returns the number of elements in a hash. It could be that's what he meant, but that's now how I interpreted his question.

This is wrong.

Not so hasty on the wrong. Fletch and Jenda also interpreted the question like I did.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (7)
As of 2024-03-19 02:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found