Hi David,

> Is it possible to get CGI.pm to print  <p
> class="myclass">text.......</p>

Yes.  If the first argument is a hashref, it will use the name/value
pairs as tag attributes.

  print $q->p({class=>"myclass"}, "text.......");
  
> I also need to print out the one these as well:
> 
> <link rel="stylesheet" href="/css/main.css" type="text/css">
> but it has to be in the <head> of the starting HTML? -- and I would
> like it 
> before the </head> and after the </title>

  print $q->start_html(
    -head  => $q->Link({-rel=>"stylesheet", -href=>"main.css"}),
    -title => "some title"
  );

See "perldoc CGI" for more detailed information.

Cheers,
Ovid

=====
Silence is Evil            
http://users.easystreet.com/ovid/philosophy/decency.html
Ovid                       http://www.perlmonks.org/index.pl?node_id=17000
Web Programming with Perl  http://users.easystreet.com/ovid/cgi_course/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to