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!
精彩评论