# no strict or warnings $bla = "this and that"; $file = "c:\filea"; system("echo $bla > $file"); # this works if (1==1) #not the actual test, but it goes in this test { system("echo $bla > $file"); #this never occurs #if run by an exe that calls Perl -U this_script #and passes output to IIS #it does work from cmd prompt }