title: How can I store captures from a Perl regular expression into separate variables?
body: <p>I have a regex:</p>
  
  <pre><code>/abc(def)ghi(jkl)mno(pqr)/igs
  </code></pre>
  
  <p>How would I capture the results of each parentheses into 3 different variables, one for each parentheses? Right now I using one array to capture all the results, they come out sequential but then I have to parse them and the list could be huge.</p>
  
  <pre><code>@results = ($string =~ /abc(def)ghi(jkl)mno(pqr)/igs);
  </code></pre>