open (STDERR, ">>error.log") or die "Cannot redirect STDERR to error.log file"; #### open (STDERR, ">>error.log") or die "Cannot redirect STDERR to error.log file"; qx!c:\path\to\executable!; close (STDERR);