in reply to Handling STDERR and STDIN in Perl
I'm not sure about your exact situation, but I've used the following trick to get STDIN from a program that I have opened with IPC::Open3. You need to capture the output from IPC::Open3, and test it with a regex for your prompt. Then:
Then write it to IPC:Open3.{ local *STDIN; open( STDIN, "< /dev/tty" ); my $ok = <STDIN>; }
|
|---|