title: Regex - Match all occurrences?
body: <pre><code>my @matches = ($result =~ m/INFO\n(.*?)\n/);
  </code></pre>
  
  <p>So in Perl I want to store all matches to that regular expression. I'm looking to store the value between INFO\n and \n each time it occurs. </p>
  
  <p>But I'm only getting the last occurrence stored. Is my regex wrong?</p>