my %new_hash = map { $hash{$_}[0] => [ $_, @{$hash{$_}}[1,2] ] } keys +%hash;
In reply to Re: Using MAP to swap around HoA hash keys and array values.
by ysth
in thread Using MAP to swap around HoA hash keys and array values.
by awohld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |