title: perl grep multiple pattern
body: <p>I am trying to grep and match two patterns </p>
  
  <p><code>if(grep /mystatus eq 'PASSED\||FAILED/ &amp;&amp; /myupdate ne TEST/, @try)</code>  then it should print "ok". However its not matching correctly. it prints 'not matching'. Could you please suggest ? Thanks in Advance.</p>
  
  <pre><code>use strict;
  use warnings;
  open(FILE,"myfile");
  my @file = &lt;FILE&gt;;
  
  
  if(grep /mystatus eq 'PASSED\||FAILED/ &amp;&amp; /myupdate ne TEST/, @file)
  {
  print "ok";
  }
  else
  {
  print "not matching\n";
  }
  </code></pre>
  
  <h1>myfile has these lines</h1>
  
  <h1>mystatus=PASSED</h1>
  
  <h1>myupdate=TESTED</h1>