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


in reply to Win32::Process handle inheritance

use as the 4th argument (before cwd, before ".") Win32::Process::CREATE_NEW_CONSOLE()

That will create a new process, with a new console, with a new stdin/stdout/stderr

Don't use DETACHED_PROCESS as it will create a process without a console and without stdin/stdout/stderr