Help for this page
use IO::CaptureOutput qw/capture/; ... capture sub { system($command); } => \$stdout, \$stderr;