in reply to Re^2: Hash merging!
in thread Hash merging!

Yes, it is simpler, but it seems that @a{keys %b} = values %b; is consistently faster. A quick mesurement shows that

perl -we 'use Time::HiRes "time"; %a = map rand, 1 .. (1<<18); %b = ma +p rand, 1 .. (1<<18); warn($t = time()); %a = (%a, %b); warn time() - + $t; warn 0+keys(%a);'
runs in 2.8s, while
perl -we 'use Time::HiRes "time"; %a = map rand, 1 .. (1<<18); %b = ma +p rand, 1 .. (1<<18); warn($t = time()); @a{keys %b} = values %b; war +n time() - $t; warn 0+keys(%a);'
in 1.0s.