Let's see.
my %new_hash = map { my $v = $hash{$_}; $$v[0], [$_, @$v[1 .. @$v - 1] +] } keys(%hash);
In reply to Re: Using MAP to swap around HoA hash keys and array values.
by ambrus
in thread Using MAP to swap around HoA hash keys and array values.
by awohld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |