in reply to Spitting out a webpage

http://www.w3.org/Protocols/rfc1945/rfc1945. *

If you don't want to read all that, you're almost certainly better off using an existing webserver, either a pure-perl one, like HTTP::Daemon or something like apache

* update: http://www.w3.org/Protocols/rfc2616/rfc2616.html is more up to date.