in reply to Redirecting input and output of child process to inet socket fails on Win32
You can try the Expect perl module (also available as ppm from ActiveState). Be ready for problems (both generic and windows-related), yet IMHO Expect is one of the more robust solutions for IPC. I would also recommend making your solution pure-perl, if possible, and not run external processes.