develooper Front page | perl.perl5.porters | Postings from May 2013

Re: is dead, long live

Thread Previous | Thread Next
Johan Vromans
May 28, 2013 07:35
Re: is dead, long live
Message ID:
Aristotle Pagaltzis <> writes:

> • CGI is not the same as You don’t have to be using if
> you are doing CGI – many of us have done it with nothing in the past,
> or you can use something else than to do CGI.


> • CGI is not the only deployment option and indeed if you are running
> a web app rather than adding a guestbook or some such into a mostly
> static web site, then it’s certainly not the best one. But it remains
> *a* deployment option that can sometimes be easier than others.


> In both of these senses, Plack has you covered.

Plack is an excellent framework for writing web applications. But if you
want something quick and easy (your guestbook suggestion is a good
example) it's overkill.

>> If I'd want a trivial web app that shows me yesterday's SinFest comic,
>> I'd use and 10-20 lines of Perl code. It would work on every
>> web host that has Perl. What would be your approach?
> You can write a script using Plack that you can then deploy as a CGI –
> as one among any number of deployment options.

My 10-20 lines of Perl code will work on every web host that has Perl.

Your Plack solution requires install of a huge collection of modules,
including a lot of XS modules. The last time I tried to install Plack
and Task::Plack (Fedora 17, with pristine 5.16.3) it bailed out after
having installed some 90 modules.

I'm sure I could make it going, but this does not classify as a
something quick and easy.

> It’s all so, so, so much better and cleaner and saner than ever
> could be. Why would we be so cruel as to foist that relic on any
> newbie?

Because it works?

Remember, we all program Perl but occasionally a simple shell script
will do the job.

-- Johan

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About