Re: first steps with mod_perl

[email protected] (Marek)
Newsgroups perl.beginners.cgi
Organization http://groups.google.com
Message-ID <[email protected]>
Thank you Gunnar,

I know how to print in Perl! My question was about CGI.pm Module, and
how the default DTD is set: by the version of the CGI-Mudule, or by
Apache-Config ...

Strangely Matthew Hellman answered again off-list and suggested the
following code, which finally gave me an idea, how to insert the DTD
the right way:


print start_html(       -title=>'Secrets of the Pyramids',
                        -author=>'[email protected]',
                        -base=>'true',
                        -target=>'_blank',
                        -meta=>{'keywords'=>'pharaoh secret mummy',
                        'copyright'=>'copyright 1996 King Tut'},
                        -style=>{'src'=>'/styles/style1.css'},
                        -BGCOLOR=>'blue',
                        -dtd=>[ '-//W3C//DTD XHTML 1.0 Strict//EN',

'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd' ]
                );

Why the programmer of CGI.pm did not provide a simple Hash like

-dtd=>'xhtml strict'
-dtd=>'xhtml transitional'


...


Would be so easy! Why are in the docs no hints, how to insert the
DTD ?
Ok thanks guys of this group here. Also if the replies were not very
helpful.



marek
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.