in reply to local webserver for CGI on linux

Slight expansion on zentara's answer, due to the sloppiness of your question: use the webserver you will be using in a "real environment" if you're planning on using a "real environment" or, to bring the discussion back to Perl, iirc there are several modules offering minimal web servers entirely implemented in Perl itself, one being HTTP::Server::Simple.

--
If you can't understand the incipit, then please check the IPB Campaign.