use CGI (); my $cgi = CGI->new(); print $cgi->header(-type => 'text/html'), $cgi->start_html("testseite"); ...