in reply to RE: HTML with CGI.pm
in thread HTML with CGI.pm
Replace use CGI; with use CGI::Pretty; and you'll get HTML much more readable and compatible than you probably could code yourself, indented and all. You can also customize which tags it linebreaks on to prevent bad (read: all) browsers from incorrectly interpreting whitespace, which mainly happens in tables.