tags:

views:

190

answers:

3

Is there a webserver or HTTP server module in the Perl standard library or in CPAN or elsewhere? I guess I'm looking for the equivalent of Python 3's http.server module. Thanks!

+3  A: 

See HTTP::Daemon

PP
+9  A: 

In addition to HTTP::Daemon, I would recommend taking a look at HTTP::Server::Simple which indeed is very easy to use.

Sinan Ünür
I've stability issues with HTTP::Server::Simple when running for a long time (several days), but I've had better success with HTTP::Server::Simple w/ Net::Server::PreFork
mpeters
@mpeters: I use HTTP::Server::Simple for applications that run for a few hours at a time so did not notice such problems but thank you for the heads up.
Sinan Ünür
+1  A: 

Here are a few more:

Pedro Silva