The output looks right to me. You are assigning the same hashref again.
Do you need the hashes to different instances with same content?
Then you need to loop over all keys and always assign a new copy { %$hashref }
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re^7: Combinations of lists, etc
by LanX
in thread Combinations of lists to a hash
by tel2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |