in reply to Re^3: cgi.pm -import strict html4 address into html4 strict dtd header
in thread cgi.pm -import strict html4 address into html4 strict dtd header

Hint: 'hyphen'.
#!/usr/bin/perl use strict; use warnings; use CGI qw/:html4/; my $q = CGI->new; print $q->start_html(-lang => 'en-GB', -dtd => ['-//W3C//DTD HTML 4.01//EN', 'http://www.w3.org/TR/html4/strict.dtd']);
  • Comment on Re^4: cgi.pm -import strict html4 address into html4 strict dtd header
  • Download Code

Replies are listed 'Best First'.
Re^5: cgi.pm -import strict html4 address into html4 strict dtd header
by Don Coyote (Hermit) on Nov 21, 2011 at 20:18 UTC

    Hint: 'gotcha'.

    #!/usr/bin/perl use strict; use warnings; use CGI qw/:html4 -no_xhtml/; my $q = CGI->new; print $q->start_html( -lang => 'en-GB', dtd => ['-//W3C//DTD HTML 4.01//EN', 'http://www.w3.org/TR/html4/strict.dtd']); #:p