in reply to How to give input to a program which is inside perl script
In case you need the output from getpdata, use backticks or the "qx" function.system "echo 1 | getapdata";
There are other, more complex options, including "open2".
Earth first! (We'll rob the other planets later)
|
|---|