map {$b{$_} = $a{$_}} keys %a; [download]
In reply to Re: Union of hashes by ropey in thread Union of hashes by IvorW