in reply to perl - html
I'd also echo the previous poster, to use CGI to simplify your interactions with http and html. Even better, use something like Template::HTML or HTML::Mason.
Here is your example using CGI in OO mode:
use strict; use CGI; my $q = new CGI; print $q->header; print $q->start_html('Hello World'); print $q->h2('Hello, world!'); print $q->end_html;
|
|---|