According to the answer to this question, merging two hashes in Perl 5 can be done either with:
%newHash = (%hash1, %hash2); %hash1 = %newHash;
or
@hash1{keys %hash2} = values %hash2;
Perl 5.18 , on the other hand, will implement hash process randomization .
Would the second method still be correct to use in Perl 5.18?
merge perl hash
andrefs
source share