开发者

Prerequisites for Perl

开发者 https://www.devze.com 2023-01-22 07:33 出处:网络
I am new to developing a website using Perl开发者_运维百科 CGI scripts. What are the prerequisites for 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.


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.


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.


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.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号