Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners Cgi > Re: first steps...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 9 Topic 1416 of 1496
Post > Topic >>

Re: first steps with mod_perl

by mstep@[EMAIL PROTECTED] (Marek) Sep 30, 2007 at 05:39 AM

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=>'fred@[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
 




 9 Posts in Topic:
first steps with mod_perl
mstep@[EMAIL PROTECTED]   2007-09-18 11:46:19 
Re: first steps with mod_perl
noreply@[EMAIL PROTECTED]  2007-09-19 00:39:30 
Re: first steps with mod_perl
mstep@[EMAIL PROTECTED]   2007-09-22 03:26:05 
Re: first steps with mod_perl
noreply@[EMAIL PROTECTED]  2007-09-23 20:32:19 
Re: first steps with mod_perl
mstep@[EMAIL PROTECTED]   2007-09-30 05:39:09 
Re: first steps with mod_perl
noreply@[EMAIL PROTECTED]  2007-10-06 23:00:21 
Re: first steps with mod_perl
mstep@[EMAIL PROTECTED]   2007-10-08 20:04:40 
Re: first steps with mod_perl
david@[EMAIL PROTECTED]   2007-10-09 11:07:59 
Re: first steps with mod_perl
mstep@[EMAIL PROTECTED]   2007-10-10 08:28:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 20:54:04 CST 2008.