http://qs1969.pair.com?node_id=831558


in reply to Re: How to invoke pdftotext and extract first line of text from PDF file?
in thread How to invoke pdftotext and extract first line of text from PDF file?

You can use backticks also:
$text = `$Globals::pdftotext_bin -layout $pdffile -`; if ($?) { log_error(...) }