title: How to use UNIX commands in Perl? (to be used on a Windows machine)
body: <p>I need to filter the content of one file (javasrc.txt) by the contents of a second file (OEMDS.txt). This needs to be done in a Windows environment. I don't know about Windows batchfiles, I know about UNIX commands, I'm new at Perl and I would like to make my life as easy as possible, so I have thought of writing a UNIX command, put "system()" around it and it should work.</p>
  
  <p>Unfortunately it seems not to be that simple: the following Perl script refuses to work:</p>
  
  <pre><code>system("cat javasrc.txt | grep -v qx(cat OEMDS.txt) &gt; javasrc_temp.txt");
  </code></pre>
  
  <p>I get error message:</p>
  
  <pre><code>grep: OEMDS.txt): No such file or directory
  </code></pre>
  
  <p>For your information: I have already used the following for launching the <code>cat</code> command:</p>
  
  <pre><code>- backticks
  - $()
  - qx()
  - qx{}
  </code></pre>
  
  <p>Always the result is the same: Perl seems to have an issue with the terminating character (the second backtick or comma, ...)</p>
  
  <p>Now that I think about it, I launch this in the following way (I don't know if it's relevant):</p>
  
  <pre><code>perl filter_by_file_content.pl
  </code></pre>
  
  <p>Does anybody know what I can do?</p>