in reply to Re^2: Output of a command
in thread Output of a command

You could be using IPC::Open3 , it will get output from STDOUT,STDERR .