in reply to system stdout redirected ok to a file but not to a variable.
You can use backticks to capture just one of the subprocess output streams. Or IPC::Open3, and select or any module allowing to handle IO events to read all the streams concurrently, or even some module doing the capturing for you.
|
|---|