(And easiest to understand, to my way of thinking) -
while (my ($k,$v) = each %hash2){ $hash1{$k} = $v; }
Earth first! (We'll rob the other planets later)
In reply to Re: update a hash with a hash
by NetWallah
in thread update a hash with a hash
by stupidius
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |