title: calling perl script that takes multiple input args in python
body: <p>Need help with integrating perl script with main python script.</p>
  
  <p>I have a perl script by name: <code>GetHostByVmname.pl</code></p>
  
  <pre><code>./GetHostByVmname.pl –server 10.0.1.191 –username Administrator –password P@ssword1 –vmname RHTest
  </code></pre>
  
  <p>I need to call above script from my python main script. Tried below, but doesn’t work:</p>
  
  <pre><code>param = "--server 10.0.1.191 --username Administrator --password P@ssword1 --vmname RHTest"
  
  
  pipe = subprocess.Popen(["perl", "./GetHostByVmname.pl", param ], stdout=subprocess.PIPE)
  </code></pre>