$content = some-pdftotext-command('foo.pdf'); Then, what I really want is just the first line of text - that is, the title at the top of the page - but I'm guessing it's not going to conveniently insert carriage returns that I can recognize - or will it?

So even better would be @lines = = some-other-pdftotext-command('foo.pdf');