I'm sure others have already answers this...
I mean that your second each call is overwriting your $k2 value so your next call to each is operating on the value you replace $k2 with instead of the hashref you mean to have there.
Stomping is a colloquial expression, by which I mean to stay "accidentally replacing" or "stepping on."
-Paul
In reply to Re^3: Trying to remove duplicate rows using hashes
by jettero
in thread Trying to remove duplicate rows using hashes
by Angharad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |