title: Call Perl script from Python
body: <p>I've got a Perl script that I want to invoke from a Python script.  I've been looking all over, and haven't been successful.  I'm basically trying to call the Perl script sending 1 variable to it, but don't need the output of the Perl script, as it is a self contained program.  </p>
  
  <p>What I've come up with so far is:</p>
  
  <pre><code>var = "/some/file/path/"
  pipe = subprocess.Popen(["./uireplace.pl", var], stdin=subprocess.PIPE)
  pipe.stdin.write(var)
  pipe.stdin.close()
  </code></pre>
  
  <p>Only just started Python programming, so I'm sure the above is total nonsense.  Any help would be much appreciated.</p>