http://qs321.pair.com?node_id=955378


in reply to incrementing the file

You could use a file test like -e in a while loop:
my $output_file = "output_$input_file"; my $i = 1; while (-e $output_file) { $output_file = "output_$input_file$i"; $i++; } $abc_cmd = "abc.exe -i $input_file -o $output_file ";