in reply to Re: Win32::OLE redirect STDIN?
in thread Win32::OLE redirect STDIN?

What about closing (and not reopening) STDIN.

I tried duping and closing STDIN as well, the same way STDOUT is closed in the code. There was no effect; the OLE process still expected keypresses.