On 11 Jan 2007 at 2:49, Oliver Block wrote:
> Hello list,
>
> first of all a blessed 2007 to all of you.
>
> 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?
>
> As there are some problems with the media type for XHTML I'd rather prefer
> HTML 4.
>
> Regards,
>
> Oliver
>From the CGI docs:
Pragmas
-no_xhtml
By default, CGI.pm versions 2.69 and higher emit XHTML
(http://www.w3.org/TR/xhtml1/). The -no_xhtml pragma disables this
feature. Thanks to Michalis Kabrianis <[EMAIL PROTECTED]> for this
feature.
so
use CGI qw/:standard -no_xhtml/;
HTH,
Dp.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/