Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Accessing hash elements inside another hashby JavaFan (Canon) |
on Mar 11, 2009 at 14:58 UTC ( [id://749900]=note: print w/replies, xml ) | Need Help?? |
Hard to answer that question. Your printing code iterates over %Data. You are populating %Queues. But you aren't putting hash(refs) as values of %Queues, but arrayrefs, which contain hashes. So you have hashes containing arrays containing hashes.
And your printing code assumes the keys of %Data are hashes. The never ever are. Hash keys are always strings. No exceptions. (Strings can be used as hashes if you want to use symbolic references. But I advice you not to. And if you want to anyway, you're are on your own).
In Section
Seekers of Perl Wisdom
|
|