http://www.perlmonks.org?node_id=991636


in reply to start external program getting return code, stdout and stderr

Hello some_coder, and welcome to the Monastery!

The module Capture::Tiny will capture the output of STDOUT and STDERR (separately), as well as the return value of the called code. You can then use the return value to decide what (if anything) you want to do with the captured output.

See the recent thread Problem logging STDOUT in perl.

Hope that helps,

Athanasius <°(((><contra mundum