in reply to Constructing STDIN for an external progam
I strongly suggest looking into IPC::Run3. For this purpose, it replaces "system" and has some nice syntax for supplying STDIN or capturing STDOUT/STDERR. It's also very portable.
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|