Perl 的先决条件

发布于 2024-09-29 02:01:27 字数 80 浏览 1 评论 0 原文

我刚开始使用 Perl CGI 脚本开发网站。

Perl 的先决条件是什么?

请给我一些基本想法或一些好的教程。

I am new to developing a website using Perl CGI scripts.

What are the prerequisites for Perl?

Please give me some basic ideas or some good tutorials.

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

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

发布评论

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

评论(5

灼疼热情 2024-10-06 02:01:28

我建议您访问 learn.perl.org,即 现代 Perl 书籍,作者 chromatic,以及 Perl 5 wiki 上的 Web 框架。还要确保您使用的教程和文章是相对较新的。 Perl 已经存在很长时间了,现代 Perl 与 10 年前人们编写的不同。

I would point you towards learn.perl.org, the Modern Perl book by chromatic, and the overview of web frameworks on the Perl 5 wiki. Also make sure that the tutorials and articles you use are relatively recent. Perl has been around for a long time and modern Perl is different from what people wrote 10 years ago.

So要识趣 2024-10-06 02:01:28

我建议从 PSGI 开始。它有点新(与 mod_perl 相比),但它是 Perl 对 Python WSGI 的回应。大多数大型框架都支持它,其他有趣的项目(如 Starman)也支持它。我会从这里开始,谷歌任何我不明白的东西。

I suggest starting with PSGI. It is somewhat new (compared to mod_perl), but it's Perl's answer to Python WSGI. Most of the large frameworks support it, as does other interesting projects like Starman. I would start there and Google anything I don't understand.

捎一片雪花 2024-10-06 02:01:27

您的意思是:哪些先决知识可以帮助您学习 Perl?

Perl 语言源于 Unix 命令 grep、awk、sed 和 shell 脚本的最佳功能,再加上一些 C。如果您在这些领域很擅长,Perl 似乎很适合。您已经习惯了神秘的变量名称、快速的循环结构、动态类型、正则表达式和标准输入/输出。

Do you mean: what prerequisite knowledge would help you learn Perl?

The Perl language grew out of the best features of the Unix commands grep, awk, sed, and shell scripts, plus some C. If you are strong in those areas, Perl will seem like a good fit. You'd already be used to cryptic variable names, quick-n-dirty looping constructs, dynamic typing, regular expressions, and standard input/output.

温柔嚣张 2024-10-06 02:01:27

首先确定您正在编写 CGI 脚本还是 Apache 处理程序。两者的编码完全不同,但都有各自的优点和缺点。

First decide if you are writing a CGI script or an Apache handler. The 2 are coded completely differently, but both have their advantages and disadvantages.

悲念泪 2024-10-06 02:01:27

如果您想使用 CGI(或 FCGI)运行脚本,我向初学者推荐本教程。它将帮助您创建简单的表单。如果您已经了解一些有关脚本语言编程的知识,您将能够浏览其中的很多内容。如果您是新程序员,您可能还需要查找一些替代方案,例如 使用以下代码编写 CGI 脚本Python,一种通常被认为更适合新程序员的语言。

If you want to run your script using CGI (or FCGI), I recommend this tutorial for beginning programmers. It will help you through creating simple forms. If you already know a bit about programming a script language, you will be able to skim-read a lot of that. If you are a new programmer, you might also want zo look up a few alternatives, like coding CGI scripts with Python, a language often thought to be better suited to new programmers.

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