# command that redirects STDERR to file $command = 'myapp --flag=somearg 2>>/var/log/myapp.err'; #### # NOTHING is written to the original .err file # instead, STDERR is sent to STDOUT qx($command 2>&1)