Fore.
my %h = qw( a 1 b 2 c 3 ); @h{ keys %h } = map { $_ * 4 } values %h;
Update: True. And the subsequent followup's still verbose: $_*=4for values%h; :)
In reply to Re: multiply hash values
by Fletch
in thread multiply hash values
by gitarwmn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |