How can I run Perl on web servers?

I am very new to Perl and I wonder how to run it on web servers and all. (or if possible)

+4
source share
4 answers

The three most common options are:

I would recommend FastCGI for good performance without mass complication.

The new guy on the PSGI / Plack block , which I cannot comment on, since I did not find the time to look at it correctly.

There are various web frameworks (such as Catalyst ) that can do most of the hard work of creating a web application for you. Most of them can be accessed using several methods (for example, Catalyst supports all four).

+12
source

1) cgi, infact any program can run on the server. 2) mod-perl

+2
source

You can even run Perl as a web server :)

For eq: Continuity

 use strict; use warnings; use Continuity; Continuity->new->loop; sub main { my $request = shift; $request->print( '<p>Hello world</p>' ); } 

You can then view the Reverse Proxy in front of them.

/ I3az /

+2
source

You clearly want to use PSGI / Plack to deploy your Perl application. This is the way in 2010, you should not go the other way.

PSGI / Plack allows you to deploy the application under any web server you like, see http://plackperl.org for details.

You will also need to select an application platform that supports PSGI. There are many here; among them, Dancer is a micro-framework designed as lightweight as possible for the developer.

See http://dancer.sukria.net for more details.

+2
source

Source: https://habr.com/ru/post/1298968/


All Articles