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
    further4: ;-)

    > only does a shallow copy.

    yes, but at this point maybe already too much information for the OP.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice