|Syntactic Confectionery Delight|
Getting loopy while appending HoHby jedikaiti (Friar)
|on Mar 29, 2010 at 23:01 UTC||Need Help??|
jedikaiti has asked for the
wisdom of the Perl Monks concerning the following question:
I have this foreach loop that is supposed to grab some info and append it to a hash of a hash that already exists.
The second foreach loop is something I added to see if the first was working. It's not. The print statement in the first loop is working as expected, indicating that the loop is iterating a total of 6 times. However, the second loop is only printing out 2 lines: what was in the hash to begin with, and the last thing added to it by the first loop.
What am I doing wrong here? Why is everything I append to the hash (except for the last thing) going AWOL?
Swiss Army Nerd