in reply to update a hash with a hash

Here's a simple way to do it with a loop:

$hash1{$_} = $hash2{$_} for keys %hash2;

You can also use a hash slice:

@hash1{keys %hash2} = values %hash2;