# $cmd is defined earlier my $result = `$cmd 2>&1`;