<?xml version="1.0" encoding="windows-1252"?>
<node id="1015296" title="Windows 7: fork in perl script spawns new cmd window" created="2013-01-25 04:26:46" updated="2013-01-25 04:26:46">
<type id="115">
perlquestion</type>
<author id="116292">
mpeppler</author>
<data>
<field name="doctext">
Hi,&lt;p&gt;
I've just got a new Windows 7 laptop at work - running this little script:
&lt;code&gt;
open(IN, "svn info c:/path/to/file |");
@l = &lt;IN&gt;;

foreach (@l) {
    print "$_";
}
&lt;/code&gt;

opens a new cmd window which runs the svn info command instead of being able to read the output in the script.
&lt;P&gt;
This doesn't happen on other W7 machines around here, so I'm guessing this is a config issue somewhere - but my Windows admin know-how is essentially inexistent....&lt;P&gt;
Any constructive suggestion (so "switch to linux" is not an option :-)) welcome!
&lt;P&gt;
Michael
</field>
</data>
</node>
