On Thu, Jan 11, 2007 at 02:49:31AM +0100, Oliver Block wrote: > Can anyone tell me, if there is a way to force CGI.pm to deliver the > html code with a DOCTYPE switch for HTML4 and not XHTML?
$ perl use CGI qw/:standard -no_xhtml/; print start_html(); (^D) <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en-US"><head><title>Untitled Document</title> </head><body> Unfortunately it outputs Transitional rather then Strict, and I'm not aware of any way to override that. I've always been unimpressed by the CGI.pm markup generation facilities, I find that its easy to craft something of decent quality by using Template-Toolkit (or HTML::Template, or etc. etc. etc.). -- David Dorward http://dorward.me.uk -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/