Well you are not deleting the ids from the $_ hash and assigning the value instead of $_.
I'm also not sure why the hash slice works, most probably fresh syntax, I'd probably prefer listing the two values explicitly.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re^2: map into a multidimensional hash
by LanX
in thread map into a multidimensional hash
by nikmit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |