Running a perl script in python and storing the output in a file
<p>I'm trying to run </p>

<pre><code>script.pl &lt; input &gt; output
</code></pre>

<p>In python. I tried this:</p>

<pre><code>subprocess.check_call(["script.pl","&lt;","input","&gt;","output"])
</code></pre>

<p>Which I guess is not the proper way to do it. 
Any help would be much appreciated!</p>