I got errors in both cases when using forward slashes with the dir command, but using ActivePerl 5.8.2.808 produced the expected output in both of these cases:
test.pl:
my @history=`cmd.exe /c dir c:\\windows\\*.ini /b`;
foreach $folder(@history)
{
print $folder;
}
test.bld:
<step action='Run Script' type='0'>
<Language>PerlScript</Language>
<Script><![CDATA[my @history=`cmd.exe /c dir c:\\windows\\*.ini /b`;
foreach $folder(@history)
{
$Builder->LogMessage($folder, False);
}
]]></Script>
<indent type='3'>1</indent>
<name>perl test</name>
</step>
output:
control.ini
desktop.ini
msdfmap.ini
ODBCINST.INI
system.ini
vb.ini
vbaddin.ini
win.ini
|