in reply to How to use perl to capture its output while inputting data to an external command

Something like IPC::Run will (presuming the presence of an *NIX-y enough OS with ptys) make expect-ish automation of interactive programs possible. Alternately there's . . . erm, Expect. Use one of those to start your program, send it your input, read back the output, yadda yadda yadda.

The cake is a lie.
The cake is a lie.
The cake is a lie.

  • Comment on Re: How to use perl to capture its output while inputting data to an external command
  • Download Code