in reply to Re: What is the easiest way to merge two hashes?
in thread What is the easiest way to merge two hashes?
my $ref1= { ref1_specific_key => 'some value', common_key => { common_subkey => 'foo'; } }; my $ref2= { ref2_specific_key => 'some other value', common_key => { common_subkey => 'bar'; } }; my $output= { ref1_specific_key => 'some value', ref2_specific_key => 'some other value', common_key => { common_subkey => 'bar'; } };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What is the easiest way to merge two hashes?
by Corion (Patriarch) on Feb 15, 2015 at 08:32 UTC | |
|
Re^3: What is the easiest way to merge two hashes?
by hdb (Monsignor) on Feb 15, 2015 at 08:40 UTC | |
by tkguifan (Scribe) on Feb 15, 2015 at 08:45 UTC | |
by hdb (Monsignor) on Feb 15, 2015 at 09:05 UTC | |
by hdb (Monsignor) on Feb 15, 2015 at 08:50 UTC | |
by tkguifan (Scribe) on Feb 15, 2015 at 08:57 UTC |