Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Iterating through a HoHoH ... does a particular sub-hash exist?

by ikegami (Pope)
on Apr 05, 2010 at 17:46 UTC ( #832866=note: print w/ replies, xml ) Need Help??


in reply to Iterating through a HoHoH ... does a particular sub-hash exist?

$cmdData->{command_1}{subfields} is defined. It's an array reference.
$cmdData->{command_2}{subfields} is defined. It's an array reference.

Sounds like you want to check the number of elements in the referenced array. That would be

@{ $cmdData->{$cmd}{subfields} }
in scalar context.


Comment on Re: Iterating through a HoHoH ... does a particular sub-hash exist?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2014-09-18 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (113 votes), past polls