Hi,
I have a hash of hashes and I would like to know how to do a quick count of the hash keys for the "second level".
For a simple hash, I'm doing this:
But for a hash of hashes, if I do the same I will get a record count only for the "first level" of keys.
I woud like to avoid looping through the hash to get the record count.
I have a hash of hashes and I would like to know how to do a quick count of the hash keys for the "second level".
For a simple hash, I'm doing this:
Code:
$KeysCount = keys %Hash;
But for a hash of hashes, if I do the same I will get a record count only for the "first level" of keys.
I woud like to avoid looping through the hash to get the record count.