Wednesday, September 3, 2014

basics

Merge two hashmaps %a and %b in perl:
@a{keys %b} = values %b;
If $a and $b are references:
@{$a}{keys %$b} = values %$b