title: Iterate through Array of Hashes in a Hash in Perl
body: <p>I have an Array of Hashes in a Hash that looks like this:</p>
  
  <pre><code>$VAR1 = {
            'file' =&gt; [
                        {
                          'pathname' =&gt; './out.log',
                          'size' =&gt; '51',
                          'name' =&gt; 'out.log',
                          'time' =&gt; '1345799296'
                        },
                        {
                          'pathname' =&gt; './test.pl',
                          'size' =&gt; '2431',
                          'name' =&gt; 'test.pl',
                          'time' =&gt; '1346080709'
                        },
                        {
                          'pathname' =&gt; './foo/bat.txt',
                          'size' =&gt; '24',
                          'name' =&gt; 'bat.txt',
                          'time' =&gt; '1345708287'
                        },
                        {
                          'pathname' =&gt; './foo/out.log',
                          'size' =&gt; '75',
                          'name' =&gt; 'out.log',
                          'time' =&gt; '1346063384'
                        }
                      ]
          };
  </code></pre>
  
  <p>How can I iterate through these "file entries" in a loop and access its values? Is it easier to copy <code>my @array = @{ $filelist{file} };</code> so i only have an array of hashes?</p>