开发者

MVC frameworks for Perl web programming? [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Suggest some good MVC framework in perl

Are there any frameworks for Perl web programming that uses MVC or something like that? I'm asking this because I'm a C# developer, and I'm used with things like Web Forms and A开发者_StackOverflow社区SP.NET MVC, and, until now, all my research on the subject brought me resources about CGI programmming. Is it still the only way to do web applications in Perl?


Yes, there are, and perhaps many, but the first that comes to mind is Catalyst.


Have a look at Mojolicious.


Perl Dancer is an interesting looking web application framework in Perl. You can read about comparisons with this and the more established Catalyst in this related question

The Dancer "Hello World" looks like this...

#!/usr/bin/env perl
use Dancer;

get '/' => sub {
    "Hello World!"
};

dance;

..and is executed like this...

$ perl bin/app.pl &
...
$ curl http://localhost:3000/
Hello world!
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜