http://www.perlmonks.org?node_id=979137


in reply to Re^4: Write To PDF File
in thread Write To PDF File

You can hook the STDOUT of the generator to the STDIN of your pdf generator with a pipe. You could also concatenate the text lines into a variable and then use that directly.

What exactly is the problem? Why aren't you using any of frozenwithjoy's suggested code?