title: running awk command in perl
body: <p>I have a tab delimited file(dummy) that looks like this : </p>
  
  <pre><code>a  b
  a  b 
  a  c
  a  c
  a  b
  </code></pre>
  
  <p>I am trying to write an <code>awk</code> command inside the perl script in which the file.txt is being made.</p>
  
  <p>The awk command :</p>
  
  <pre><code>$n=system(" awk -F"\t" '{if($1=="a" &amp;&amp; $2=="b") print $1,$2}' file.txt|wc -l ")
  
  Error :
  comparison operator :error in '==' , ',' between $1 and $2 in print }'
  </code></pre>
  
  <p>The awk script is running fine on command line but giving error while running inside the script.</p>
  
  <p>I don't see any syntax error in the awk command.</p>