in reply to Lightweight equivalent of Apache/CGI?
I've found several different lightweight httpd on the web, some written in perl. Here is my goodie list.
Boa WebServer - http://www.boa.org/
httpi - http://www.floodgap.com/httpi/
Jellybean - http://www.wgz.org/chromatic/jellybean/
I haven't personally played too much with them. However, I have spent time looking into what would meet my needs. These seem pretty good. I'd say httpi and jellybean the first ones I'd look at.
Then of course there are the perl modules, HTTP::Daemon (which was already mentioned), HTTP::Server::Singlethreaded, and a few others from activestate and cpan.org.
Hope this helps