编写Perl CGI应用程序的最佳方法是什么? [英] What's the best way to write a Perl CGI application?

查看:57
本文介绍了编写Perl CGI应用程序的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我见过的每一个有关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 - very lightweight with lots of community plugins
  • Catalyst - heavier with more bells and whistles
  • Jifty - more magical than the above

这篇关于编写Perl CGI应用程序的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆