Hi pals, How can I add values to hash, when key is the same ? Example:
my %ha = ( 'test1' => [ { 'test1_a' => 'a', 'test1_b' => 'b', }, { 'test1_a' => 'a', 'test1_b' => 'b', } ] ); my %hb = ( 'test1' => [ { 'test1_c' => 'c' }, { 'test1_d' => 'd' } ] ); %ha is initial and will _always_ have all the keys, which has %hb. Now I want this structure as result: %result = ( 'test1' => [ { 'test1_a' => 'a', 'test1_b' => 'b' }, { 'test1_a' => 'a', 'test1_b' => 'b' }, { 'test1_c' => 'c' }, { 'test1_d' => 'd' } ] ); order in hash doesn't matter. Anyone ? thanks. -- --. ,-- ,- ICQ: 7552083 \|||/ `//EB: www.2ge.us ,--' | - |-- IRC: [2ge] (. .) ,\\SN: 2ge!2ge_us `====+==+=+===~ ~=============-o00-(_)-00o-================~ Jesus saves...Passes to Moses...Moses Shoots....Scores! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>