in reply to multiply hash values
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; :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: multiply hash values
by shenme (Priest) on Oct 27, 2004 at 23:34 UTC | |
by chromatic (Archbishop) on Oct 28, 2004 at 00:09 UTC | |
by tilly (Archbishop) on Oct 28, 2004 at 05:39 UTC |