title: Perl: Match exact word from tab-delimited file
body: <p>I have a tab-delimited file (containing 2 columns) in the following format:</p>
  
  <pre><code>ABA-1 (tab)           CDF@
  ABA-1 (tab)           EFG
  ZYA (tab)             ABA-1 this
  EFG that this (tab)   ZYA
  </code></pre>
  
  <p>I want to match only /EFG/ and not /EFG that this/. Similarly, I want to only match /ABA-1/ and not /ABA-1 this/.</p>
  
  <p>The following pattern doesn't work:</p>
  
  <pre><code>$line=~ /^(\w*\-?\w*\@?)\t*(\w*\-?\w*\@?)$/
  </code></pre>
  
  <p>I have tried using word boundaries (\b) but it doesn't work either.</p>
  
  <p>Any ideas on how to tackle this issue? Any help will be highly appreciated. Thanks a lot!</p>