in reply to HTML with CGI.pm

All I know (well, not all) is that CGI.pm produces ghastly HTML code. I don't use it because it's just a pain in the ass to look at when some html-code is wrong and you have to look at the source. But I have heard it makes it really easy to produce tables on-the-fly.

my $0.02

-- aron

Replies are listed 'Best First'.
RE: RE: HTML with CGI.pm
by athomason (Curate) on Jul 22, 2000 at 00:36 UTC
    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.
(Ovid) RE(2): HTML with CGI.pm
by Ovid (Cardinal) on Jul 22, 2000 at 00:31 UTC
    It's my understanding that CGI::Pretty gets around this problem, but I haven't had the opportunity to use it since I have pretty much avoided the CGI modules HTML capabilities.
      $, = "\n";
      Would help emensly!
      --
      Casey