如何在Perl中编写HTTP服务器?

如何在Perl中编写HTTP服务器?

问题描述:

Perl标准库或CPAN或其他地方是否有Web服务器或HTTP服务器模块?我想我正在寻找相当于Python 3的 http.server 模块。谢谢!

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!

除了 HTTP ::守护进程,我建议看看 HTTP :: Server :: Simple ,确实非常容易使用。

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