in reply to Iterating through a HoHoH ... does a particular sub-hash exist?
If you did, you would have seen that
gives you an error, unless you have elsewhere declared $cmdData.$cmdData->{$cmd}{subfields}
$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.
CountZero
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 |