English 中文(简体)
非网站节目(Perl)
原标题:Web Programming For The Non-Web Programmer (in Perl)
  • 时间:2011-08-21 20:44:24
  •  标签:
  • perl

我期待着在Perl开始网络规划(Perl是我知道的唯一语言)。 问题在于,除网络外,我事先不知道与网络有任何关系。 我没有任何想法可以开始。

因此,我的问题是......

<><>>>> 我何时开始学习网络规划? 我知道什么? 我应该使用什么?

我事先感谢大家的回答和帮助。

最佳回答

The key things to understand are:

What you can send to browsers

...... 或者说,你打算向浏览器寄送的东西,但了解其他内容是有益的(因为在复杂的网络应用中,你将需要选择适当的数据格式)。

e.g.

  • HTML
  • CSS
  • JavaScript
  • Images
  • JSON
  • XML
  • PDFs

当你生动地生成数据时,你还应了解现有的工具(例如,Perl社区对用于生成超文本,但还有其他选择,如Mason ,而。 往往是我来临的。

Transport mechanisms

  • HTTP (including what status codes to use and when, how to do redirects, what methods (POST, GET, PUT, etc) to use and when).
  • HTTPS (HTTP with SSL encryption)

How to get a webserver to talk to your Perl

  • PSGI/Plack if you want modern and efficient
  • CGI for very simple
  • mod_perl if you want crazy levels of power (I ve seen someone turn then Apache HTTPD into an SMTP spam filter using it).

Security

如何防范

Web Frameworks

你可以把许多工作推向各种框架,这些框架为组织网络应用提供了结构化的方法。

  • Web::Simple is simple
  • Dancer seems to be holding the middle ground (although I have to confess that I haven t had a chance to use it yet)
  • Catalyst probably has the steepest learning curve but comes with a lot of power and plugins.
问题回答

Dependent on complexity of your project, you could have a look at Catalyst MVC. This is a good framework, messing up with the most request stuff, but gives you enough in deep view whats going on.

http://search.cpan.org/~bobtfish/Catalyst-Manual-5.9000/lib/Catalyst/Manual/Tutorial.pod” rel=“nofollow”

如果你想开始做 mo或GI,也有一些图人:

If you re looking to try some web programming in Perl, you could try hosting a Dancer app for free on OpenShift Express.

甚至还有一份“开放式快车道”的传波,以启动:https://github.com/open-dancer-example





相关问题
Why does my chdir to a filehandle not work in Perl?

When I try a "chdir" with a filehandle as argument, "chdir" returns 0 and a pwd returns still the same directory. Should that be so? I tried this, because in the documentation to chdir I found: "...

How do I use GetOptions to get the default argument?

I ve read the doc for GetOptions but I can t seem to find what I need... (maybe I am blind) What I want to do is to parse command line like this myperlscript.pl -mode [sth] [inputfile] I can use ...

Object-Oriented Perl constructor syntax and named parameters

I m a little confused about what is going on in Perl constructors. I found these two examples perldoc perlbot. package Foo; #In Perl, the constructor is just a subroutine called new. sub new { #I ...

Where can I find object-oriented Perl tutorials? [closed]

A Google search yields a number of results - but which ones are the best? The Perl site appears to contain two - perlboot and perltoot. I m reading these now, but what else is out there? Note: I ve ...

热门标签