in reply to Not getting clean HTML using print

In the strings to print, you should escape the double quotes, i.e. print "hello \"world\""; would print hello "world".

This is the short answer, the longer and better one is that you could have a look at the CGI module that makes generating HTML a lot less painful. Various tutorials can be found in the monastry. A number of templating systems exists, HTML::Template comes to mind.

Hope this helps, -gjb-

Replies are listed 'Best First'.
Re: Re: Not getting clean HTML using print
by ctilmes (Vicar) on Jul 03, 2003 at 13:06 UTC
    >In the strings to print, you should escape the double quotes

    or use alternative quotes:

    print 'hello "world"'; print qq{hello "world"};