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


in reply to Problem converting HTML to PDF

I know nothing about HTML to PDF conversion, but what's with the quotes here:
open ( FIN, "$html2ps http://mypage.com/index?param=x&foo=y' |" );
?

Plus, as any monk will tell you, you're not testing that open with an "or die"...
--

“Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.”
M-J D

Replies are listed 'Best First'.
Re: Re: Problem converting HTML to PDF
by ehdonhon (Curate) on Jan 29, 2003 at 21:43 UTC

    what's with the quotes...

    Typo from copying the code over to my browser. Should be:  open ( FIN, "$html2ps 'http://mypage.com/index?param=x&foo=y' |" );

    you're not testing that open with an "or die"...

    You are right, I should do that. But, as I said in my original post, I know from debugging that I'm getting past this point correctly.

    Thanks.