my ($stdout, $stderr, $exit) = capture { system( $cmd, @args ); };