P is for Practical | |
PerlMonks |
Re: How to use perl to capture its output while inputting data to an external commandby Fletch (Bishop) |
on Sep 24, 2021 at 03:54 UTC ( [id://11136976]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|