my %h = qw/a 1 b 2 c 3/; my $something = 2; # multiply one element $h{a} *= $something; # multiply all elements for ( values %h ) { $_ *= $something; }
In reply to Re: multiply hash values
by borisz
in thread multiply hash values
by gitarwmn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |