in reply to Re: replacement for LWP::Simple ?
in thread replacement for LWP::Simple ?
but posted this:print "Content-type: text/html\n\n"; $myDocument;
print "Content-type: text/html\n\n", $myDocument;
A comma would mean that $myDocument is the second argument to the print statement, and should work. A semi-colon would mean that $myDocument was a statement in itself, which is nonsensical, and will give you the error message you posted.
I think that you actually tested using a semi-colon twice, and happened to mis-key the semi-colon when you posted the first time, changing it into a comma and fixing your own problem! (Or maybe larsen fixed your error, and you cut-and-pasted his correction ?)
Can you test your program again, making sure you have only a comma between "Content-type: text/html\n\n" and $myDocument ?
|
|---|