On Wed, May 30, 2001 at 03:56:39PM -0500, Jay Strauss wrote:
> Also I don't think:
> 
> > print "<form name="a_form">\n";
> > print "<select name="pull_my_finger" size=1>\n";
> 
> is not properly formed (unless a_form and pull_my_finger are function names
> (even then I don't know if it would work)).  I think you may want:
> 
> print q[<form name="a_form">]."\n";
> or
> print '<form name="a_form"'."\n";

D'oh! Jay's right, the double quotes in the HTMl need to be escaped. Besides
the two forms above, 

        print "<form name=\"a_form\">\n";

will also do the trick. See perldata(1), under "Scalar value constructors"
for more that you even wanted to know about how to quote strings.

-- 
Henry House
OpenPGP key available from http://hajhouse.org/hajhouse.asc

PGP signature

Reply via email to