Trihedralguy has asked for the wisdom of the Perl Monks concerning the following question:
'characters' => { 'Apple' => { 'fruit_id' => '0' }, 'Orange' => { 'fruit_id' => '0' }, }
I generally know how a hash functions, but for some reason this results as an infinite loop, iterating through the hash over and over.my $fruits_xml = $xml_feed->{grocery}->{produce}; #narrowing just to produce here. while( my ($fruit_name) = each %$fruits_xml) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 'Multi-Dimensional' Hash
by ikegami (Patriarch) on Oct 20, 2009 at 21:55 UTC | |
by Trihedralguy (Pilgrim) on Oct 21, 2009 at 12:26 UTC | |
by ikegami (Patriarch) on Oct 21, 2009 at 19:16 UTC | |
|
Re: 'Multi-Dimensional' Hash
by kennethk (Abbot) on Oct 20, 2009 at 21:50 UTC |