chomp( my $number_of_pages = qx{ pdftotext ... multipage.pdf } );