in reply to Redirecting STDOUT
$output=qx(@command); [download]
now you have captured the output in $output and can do whatever you wish with it.