in reply to Re^2: refering to a variable by using other variables
in thread refering to a variable by using other variables

You're welcome! *tips hat*

I don't have any experience with ElasticSearch or its API, but I don't think using an array of hashes should be a big problem there. Given an array of hashes, you can recover the (anonymous) hashes it contains as follows:

%hash = %{ $varbindhash[$i] };