in reply to Bidirectional Pipe While Reading From STDIN

I cannot use IO::Select because it is not supported on Windows. Perhaps a better idea would be sockets, but I believe this can be done using pipes.

The module IPC::Run uses sockets and works on Windows.

Also see Please suggest a non-forking way to do this (OS: windows), especially the posts from ikegami towards the end, especially Re: Please suggest a non-forking way to do this (OS: windows) (solution)


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
  • Comment on Re: Bidirectional Pipe While Reading From STDIN

Replies are listed 'Best First'.
Re^2: Bidirectional Pipe While Reading From STDIN
by rem45acp (Novice) on Feb 24, 2014 at 13:55 UTC

    Thank you very much for your response.

    Based on the multiple solution(s) in that thread, I would still need to add an additional pipe in order to write to the driver, correct? As well as reading from the driver, pausing to take input from the console, sending that input into the driver, and then resume reading from the driver?

    I'm beginning to think that either IPC::Run or IO::Socket::IP might be the only way to accomplish this sanely.