Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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

by CountZero (Bishop)
on Apr 05, 2010 at 19:05 UTC ( #832883=note: print w/replies, xml ) Need Help??

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

Are you using the strictures, jedikaiti?

If you did, you would have seen that

gives you an error, unless you have elsewhere declared $cmdData.

$cmdData->... contains a scalar reference and has nothing to do with your hash %cmdData. You probably meant something like $cmdData{'command_2'}->{subfields}.

Update: Forget what I wrote above. I somehow totally missed the code in your node. Thanks almut for pointing that out to me.


A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: Iterating through a HoHoH ... does a particular sub-hash exist?
by almut (Canon) on Apr 05, 2010 at 19:40 UTC

    I guess the retrieve in my $cmdData = retrieve('') would return a reference to the hash in question, so things should be fine.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://832883]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2018-02-19 06:28 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (258 votes). Check out past polls.