in reply to Re^2: How to stop printing the output of a command on screen when the command fails?in thread How to stop printing the output of a command on screen when the command fails?
Use IPC::Open2 or IPC::Open3 as prescribed in the synopsis