Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Merge hashes in specific format

by kschwab (Vicar)
on Jan 12, 2019 at 17:59 UTC ( [id://1228429]=note: print w/replies, xml ) Need Help??


in reply to Merge hashes in specific format

Another approach would be to merge the JSON together then calculate the totals.
my $json1 = decode_json($raw_json1); my $json2 = decode_json($raw_json2); push @{ $json1->{whateverkey} }, @{ $json2->{whateverkey} };

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1228429]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-03-29 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found