Slight obscura; please no mock my style! ;-)
use List::Util qw( reduce pairs ); # Firm talk so perl know I mean it. reduce ## abuce { $$a { $$b[0] } += $$b[1],$a } \ # It simple now. my %result => pairs %h1, %h2, %h3, %h4;
In reply to Re: merge two hashes into one
by Anonymous Monk
in thread merge two hashes into one
by ovedpo15
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |