title: How do I create an array of hashes and loop through them in Perl?
body: <p>I'm trying to create an array of hashes, but I'm having trouble looping through the array. I have tried this code, but it does not work:</p>
  
  <pre><code>for  ($i = 0; $i&lt;@pattern; $i++){
    while(($k, $v)= each $pattern[$i]){
      debug(" $k: $v");
    }
  }
  </code></pre>