That is because you are assiging the same reference to \%main_hash in multiple places.
Maybe you want to create a reference to a fresh copy of %main_hash every time? The following code will create a fresh copy of the contents of %main_hash:
{ %main_hash }
I recommend that you trim down the amount of references you're diving around with until you understand references and data structures in general better.
In reply to Re^7: Return value of Search::Elasticsearch search query
by Corion
in thread Return value of Search::Elasticsearch search query
by ravi45722
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |