http://www.perlmonks.org?node_id=935916


in reply to Re^3: Trying to get an external c program to print to a file
in thread Trying to get an external c program to print to a file

But you can write:
system "'$PGMEXEC1' '-arg1=$arg1' '-arg2=$arg2' > '${workingDir}${ps}$ +outputFile1'";
Which works fine, unless any of the variables contains a single quote, or ends in a backslash.