in reply to Re^8: Combinations of lists, etc
in thread Combinations of lists to a hash
And further to your further to my further to... wait... what?!? :)
$hash{$_} = { %$value } for @keys;
...
$hash{$_} = { %value } for @keys;
I always think it's worth pointing out in discussions on this topic that something like { %$value } or { %value } only does a shallow copy.
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Combinations of lists, etc
by LanX (Saint) on Oct 07, 2019 at 18:40 UTC |