My original post has been updated with some code to show how to do what you probably intended to do. Have a look. I think it will get you back on track. You may need to browse over one or more of the following: perlreftut, perllol, and perldsc.
Dave
In reply to Re^3: Nested while each over a hash -> infinite loop
by davido
in thread Nested while each over a hash -> infinite loop
by Eythil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |