good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: User input while process is running.by rjt (Curate) |
on Aug 05, 2013 at 13:31 UTC ( [id://1047911]=note: print w/replies, xml ) | Need Help?? |
Have a look at IPC::Run for a robust implementation of this, or for simple uses that don't require pty emulation and you don't need to capture the output, open will do what you want. Here's a barebones look at both:
Output:
use strict; use warnings; omitted for brevity.
In Section
Seekers of Perl Wisdom
|
|