in reply to Re^3: Socket Server without forking?
in thread Socket Server without forking?

You need to send an HTTP header and then a HTML page.

But usually you really want to use an existing webserver and CGI.

If you really need a pure perl web server, use HTTP::Server::Simple.