in reply to Re: Assign a hash to an array
in thread Assign a hash to an array
The second one is working very fine. Tq. But when I uses the first one its overwriting
Output for push @return_array, \%hash;
$VAR1 = [ { 'term' => { 'column09' => 'Something' } }, $VAR1->[0], $VAR1->[0] ]; $VAR1 = '{"must":[{"term":{"column09":"Something"}},{"term":{"column09 +":"Something"}},{"term":{"column09":"Something"}}]}';
Output for push @return_array, { term => { $key => $value} };
$VAR1 = [ { 'term' => { 'column08' => 'Submit' } }, { 'term' => { 'column10' => 'Delivered' } }, { 'term' => { 'column09' => 'Something' } } ]; $VAR1 = '{"must":[{"term":{"column08":"Submit"}},{"term":{"column10":" +Delivered"}},{"term":{"column09":"Something"}}]}';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Assign a hash to an array
by GotToBTru (Prior) on Jun 27, 2016 at 12:58 UTC | |
|
Re^3: Assign a hash to an array
by choroba (Cardinal) on Jun 27, 2016 at 11:31 UTC |