title: How can I kill a program that might not exist from Perl on Win32?
body: <p>I'm looking for a way to make Perl kill all firefox.exe processes on Win32, and not give an error if no process exists. I'm currently using:</p>
  
  <pre><code>system('taskkill /F /IM firefox.exe');
  </code></pre>
  
  <p>which throws up a big "ERROR: No such process found", when firefox wasn't present.</p>