Binary package “libio-captureoutput-perl” in ubuntu trusty

module for capturing STDOUT and STDERR from Perl code, subprocesses or XS

 IO::CaptureOutput provides routines for capturing STDOUT and STDERR from perl
 subroutines, forked system calls (e.g. system(), fork()) and from XS or C
 modules.