编写Perl CGI应用程序的最佳方法是什么? [英] What's the best way to write a Perl CGI application?
问题描述
我见过的每一个有关CGI / Perl的示例基本上都是一堆包含HTML的打印语句,这似乎不是编写CGI应用程序的最佳方法。有一个更好的方法吗?谢谢。
Every example I've seen of CGI/Perl basically a bunch of print statements containing HTML, and this doesn't seem like the best way to write a CGI app. Is there a better way to do this? Thanks.
编辑:我决定使用CGI :: Application和HTML :: Template,并使用以下教程:> http:// docs .google.com / View?docid = dd363fg9_77gb4hdh7b 。谢谢!
I've decided to use CGI::Application and HTML::Template, and use the following tutorial: http://docs.google.com/View?docid=dd363fg9_77gb4hdh7b. Thanks!
推荐答案
绝对(您可能正在看90年代的教程)。您将要选择一个框架。在Perl-land中,这些是最受欢迎的选择:
Absolutely (you're probably looking at tutorials from the 90s). You'll want to pick a framework. In Perl-land these are the most popular choices:
- CGI :: Application -非常轻巧,带有许多社区插件
- 催化剂-带有更多花哨的重音
- 敏捷-比上述更具魔力
- CGI::Application - very lightweight with lots of community plugins
- Catalyst - heavier with more bells and whistles
- Jifty - more magical than the above
这篇关于编写Perl CGI应用程序的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!