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