in reply to Storing an indeterminate number of hash keys in a variable
Perhaps Data::Diver would suit?
HTH,