In the second loop you use $key1 - you probably want to print that.
And this is not the code you run - because of the above typo it does not compile under strict.
It's better to post the actual code with actual test data...
In reply to Re: preserving hash value outside the loop
by morgon
in thread preserving hash value outside the loop
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |