Python Webpages

Tom Chance tomchance at gmx.net
Tue Apr 30 13:18:03 EDT 2002


> 
>     I always thought Perl's system was
> 
>     print "Content-Type: text/html\n\n";
>     print "<html><body>Hello world!</body></body>\n";

That is Perl's built in system, simply printing HTML to STDOUT. But 
every Perl web developer with half a brain uses the CGI module to vastly 
extend Perl's capabilities, and perhaps also CGI::Application and 
HTML::Template as well.

use CGI;
my $cgi = new CGI;
my $name = $cgi->param("name");
print $cgi->header(-type => "text/html");

and so on...

Tom





More information about the Python-list mailing list