Think about Loose Coupling | |
PerlMonks |
How can I find the number of elements in a hash?by Malkavian (Friar) |
on Mar 08, 2001 at 22:07 UTC ( [id://63038]=perlquestion: print w/replies, xml ) | Need Help?? |
Malkavian has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (hashes)
Is there any fast way of finding the number of elements in a hash without first assigning an array of keys of a hash? Basically, I don't like the overhead of doing the operation:
It just seems a little wasteful. If anyone can point out a quickie answer, I'd be hideously grateful Cheers, Malk Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom
|
|