$vendor = $chaseList[2]; $amount = $chaseList[3]; # Now we can directly reference the hash by vendor inside the array by month number: # $chaseArray[$month]{$vendor}