Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Catalyst? Poet? mod_perl?

by zeltus (Beadle)
on Dec 23, 2013 at 11:56 UTC ( #1068180=perlquestion: print w/replies, xml ) Need Help??
zeltus has asked for the wisdom of the Perl Monks concerning the following question:

I have the opportunity to pretty much choose whatever Framework I want to use on a project. I am sort-of au fait with mod_perl and Mason. But since I am not completely fluent and anyway, that there combo is quite old, I reckon on using something like Catalyst, perhaps with Mason2.

But I am open to suggestions. Hence this post.

I really do need a "how to build a web server" A-Z tutorial: I have no idea how any of these newer frameworks fit inside (say) Ubuntu running Apache and MySQL (may as well stick to a LAMP-like setup*)

*I can, have and do set up lots of LAMP servers, where P=PHP. But I really have to use Perl, not PHP this time around. Can't say I see anything to moan about in that "restriction"! :-)

Any help gratefully received, as ever


Replies are listed 'Best First'.
Re: Catalyst? Poet? mod_perl?
by LanX (Bishop) on Dec 23, 2013 at 12:09 UTC
    I'm afraid without specific requirements, we'll only get a unsatisfying listing of "Perl web frameworks".

    Project Current stable version Release date License Catalyst 5.90042 2013-07-16 Artistic, GPL Dancer 1.3118 2013-09-01 Artistic, GPL Mason 2.20 2012-07-12 Artistic, GPL Maypole 2.13 2008-04-18 Artistic, GPL Mojolicious 4.45 2013-10-07 Artistic

    BTW: A sucks and B rulez!!! Alas, dumb boss only knows C ... ;)

    Cheers Rolf

    ( addicted to the Perl Programming Language)

Re: Catalyst? Poet? mod_perl?
by Utilitarian (Vicar) on Dec 23, 2013 at 12:10 UTC
    Dancer::Tutorial Dancer is a very convenient framework in my experience.

    print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
Re: Catalyst? Poet? mod_perl?
by Anonymous Monk on Dec 23, 2013 at 12:28 UTC
    Mason2 and Poet are from the same author and are meant to go together. Since you have experience with Mason version 1, Mason2 seems like a good bet. It has extensive documentation too.

    Anyway, nowadays, you're supposed to use PSGI (or other fastcgi connector) rather than mod_perl to connect to Apache. I'm sure the documentation for whichever framework you choose covers how to do that.

Re: Catalyst? Poet? mod_perl?
by sundialsvc4 (Abbot) on Dec 23, 2013 at 15:03 UTC

    I suggest that you start by fully-specifying the site ... including detailed mockups of each (and every!) page, and all of the system’s behavior.   Next, armed with this detailed plan which will take you quite a bit of time to do, systematically hold it up against each of the frameworks aforementioned.

    mod_perl, vs. CGI vs. FastCGI, is a deployment decision that you don’t need to be concerned with yet.

    It might seem odd, at first, to think that you are “really doing work” when you are not “writing any [Perl] code,” but so it is.   Every building is built entirely on-paper first.   That just might be the most-important lesson in programming that there is, and it’s one that is sometimes never learned in a long career.

Re: Catalyst? Poet? mod_perl?
by stonecolddevin (Vicar) on Jan 03, 2014 at 22:11 UTC

    Well, whatever you do, don't use mod_perl.

    Three thousand years of beautiful tradition, from Moses to Sandy Koufax, you're god damn right I'm living in the fucking past

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1068180]
Approved by marto
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2018-05-21 21:08 GMT
Find Nodes?
    Voting Booth?