如何使用 Perl 创建 CGI 脚本?

发布于 2024-08-05 04:28:12 字数 99 浏览 2 评论 0原文

我正在创建一个网站并完成了一些 HTML 内容,但我正在考虑使用 CGI 和 Perl 脚本创建网站。我对 CGI 脚本不太了解。谁能建议我如何创建 CGI 脚本以及如何用它创建网页?

I am creating a website and done with some HTML stuff, but I am thinking to create site using CGI and Perl scripting. I don't have much idea on CGI scripting. Can anyone please suggest me how to create a CGI script and how to create web pages with that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

断肠人 2024-08-12 04:28:12

尝试Ovid 的 CGI 课程 - 这是一个好的开始。 《Perl Web 编程入门》也是一本不错的读物,但信息较少。

稍后您可以尝试像 CGI::Application 这样的框架 - 即使对于初学者来说它也应该很容易。

Try Ovid's CGI Course - it's a good start. "A Beginner's Introduction to Perl Web Programming" is also a good reading, but with less information.

Later you can try framework like CGI::Application - it should be easy even for a beginner.

眼泪淡了忧伤 2024-08-12 04:28:12

看看 Perl Web 编程初学者简介< /a> perl.com

我建议您使用 Template ToolkitMarkapl 使生成和维护 HTML 视图的过程变得更加简单。

展望未来,您可能需要考虑使用 Web 框架,范围从一些非常轻的东西,比如蹲下,比如催化剂

Have a look at A Beginner's Introduction to Perl Web Programming on perl.com.

I would recommend you make use of tools like Template Toolkit or Markapl to make the process of producing and maintaining your HTML view much simpler.

And moving forward you might want to consider looking at using a web framework ranging from something very light like Squatting to a powerful beast like Catalyst.

小苏打饼 2024-08-12 04:28:12

CGI 是一个连接网络服务器和内容提供商或外部应用程序的标准(比如说 Perl 脚本,一个编译的程序),我认为你最好学习 Perl 来编写一些 CGI 代码。

此链接是初学者指南,用于开始使用 Perl 进行 CGI 编码。

另外,如果您是 Perl 的初学者,您可能会寻找其他更专用于 Web 的脚本语言,最好的例子是 PHP。但如果您已经熟悉 Perl CGI,CGI.pm 也不错。

CGI is a standard to interface a webserver and a content provider or external application (let's say a Perl script, a compiled program), I think you better study Perl to code some CGI.

This link is a beginner guide to get started with CGI coding in Perl.

Also if you are beginner in Perl you might look to some other scripting language more dedicated to web, the best example is PHP. But if you are already experienced Perl CGI, the CGI.pm is nice also.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文