title: Accessing JSON decoded into a HASH and an array of hash references
body: <p>Given the following dumper output is there a way to iterate through each hash to list only the items under each <code>results-&gt;id</code> record? I want to be able to say things like:</p>
  
  <p><code>print $results{1342}{'domain'};</code></p>
  
  <p>and have the statement return <code>testing11.com</code> as a result.</p>
  
  <p>Would I have to first read through all of <code>results</code> array and then use <code>$results[$counter]{id}</code> to access the data in there ?  I'm not sure how to proceed.</p>
  
  <pre><code>$VAR1 = { 
            'end_time' =&gt; 1466017739,
            'options' =&gt; {
                           'hour_offset' =&gt; '00',
                           'timezone' =&gt; 'America/New_York'
                         },
            'field_headers' =&gt; {
                                'priority' =&gt; 'Priority',
                                'status' =&gt; 'Status',
                                'assignee_external_id' =&gt; 'Assignee external id',
                                'initially_assigned_at' =&gt; 'Initially assigned at'
                               },
            'results' =&gt; [
                           {
                             'priority' =&gt; 'High',
                             'status' =&gt; 'Open',
                             'domain' =&gt; 'testing11.com',
                             'generated_timestamp' =&gt; 1546547669,
                             'id' =&gt; 1342
                            },
                           {
                             'priority' =&gt; 'Low',
                             'status' =&gt; 'Open',
                             'domain' =&gt; 'testing22.com',
                             'generated_timestamp' =&gt; 1464567669,
                             'id' =&gt; 7062
                            },
                           {
                             'priority' =&gt; 'Low',
                             'status' =&gt; 'Closed',
                             'domain' =&gt; 'testing33.com',
                             'generated_timestamp' =&gt; 1464267669,
                             'id' =&gt; 432
                            }]
        }
  </code></pre>