title: Regular expression grouping in Perl
body: <p>I have variable contains: <code>No such file or directory at ./EMSautoInstall.pl line 50.</code></p>
  
  <p>I want to create variable contains <code>No such file or directory</code> and another one contains <code>at ./EMSautoInstall.pl line 50.</code></p>
  
  <p>my REGEX is: <code>my ( $eStmnt, $lineNO ) = $! =~ /(.*[^a][^t])(.*)/;</code></p>
  
  <p>when I print both variable, the first one contains <code>No such file or directory</code> but the second one is empty.</p>
  
  <p>Why this happen?</p>