前端:html/css+javascript,后端:perl

Front-end : html/css+javascript, Backend : perl

想要创建一个 Web 应用程序 (使用 html/css + javascript) 登录到基于 linux 的存储设备,进程存储设备的一些日志 (使用 perl) 和 return Web 应用程序的结果。

What/How 用作它们之间的连接器?哪一个最简单?

反正你要用 Perl,我会选择 CGI

无论如何,您将需要一台服务器 - 也许 HTTP::Server::Simple 对您来说就足够了。

最近不太推荐使用 CGI。 Read this.

正如@Borodin 已经说过的,这里有很多可能性(而且它们确实基于意见)。我会使用:

  1. Poet - 作为一个非常棒的框架,使用 Mason 模板、内置配置系统、缓存、日志记录 - 完全基于 Moose。缺点是 - 用户群非常小,您可能永远不会在任何地方得到 Poet/Mason 问题的任何答案。

  2. Mojolicious - 另一个不错的网络框架,许多插件,活跃用户。

也许您的需求不同 - 检查 https://metacpan.org/

如何部分 - 快速指南:

#install your own perl - don't pollute he system's perl with new modules
\curl -kL http://install.perlbrew.pl | bash
#follow the instructions add line to .profile and 
source ~/.profile
perlbrew install perl-5.20.1
    #coffe break
perlbrew switch perl-5.20.1
perlbrew install-cpanm

#install the framework and all dependecies
cpanm Poet
#time for the tea ;)

#generate your skeleton app and start the server
poet new MyAppName
myappname/bin/run.pl

并且您可以连接到 http://0:5000 到您的工作网络应用程序并开始开发。