$text = `$Globals::pdftotext_bin -layout $pdffile -`; if ($?) { log_error(...) }