I'd like to get the number of keys in hash of hashes.  I know that I
can do something like $count = keys( %myHash ), but how would I go
about finding the number of keys in a sub-hash?

Alternately, how could I loop through keys in a hash of a hash?

My hash look like:

-Part Number 1
--Type 1 (key) - Desc (value)
--Type 2 (key) - Desc (value)
--Type 3 (key) - Desc (value)
Part Number 2
--Type 1 (key) - Desc (value)
--Type 2 (key) - Desc (value)
Part Number 3
--Type 1 (key) - Desc (value)
--Type 2 (key) - Desc (value)
--Type 3 (key) - Desc (value)
--Type 4 (key) - Desc (value)
--Type 5 (key) - Desc (value)
etc...


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to