Answer the question
In order to leave comments, you need to log in
Recommend Web Framework in Perl
I just want to write a thesis in Perl and I would like to know what frameworks are there and which one would you recommend to use?
Answer the question
In order to leave comments, you need to log in
What is considered a framework? What goals should he fulfill?
If something is at the level of RoR / django, then under the pearl, alas, there is no such thing. There is a monstrous catalyst pulling a wagon of dependencies, there is his follower Mojo / Mojolicious (a year ago it was practically undocumented and sometimes buggy).
Nevertheless, there are quite independent packages for working with individual letters of the scary abbreviation MVC. In particular:
DBIx::Class - for the database,
Template Toolkit - for templating.
Controllers can be written in a thousand different ways, both by hand and using crazy CGI.
Under mod_perl2, by the way, it becomes more interesting. See modules starting with Apache:: and Apache2::.
For example, look towards Apache2::Controller. Well, how to "look". Look, understand what they wanted to say, and do the same in half a day.
With the processing of forms (validation, saving), I remember, there was an ass. The choice is small, and those that are more decent, again dragged a wagonload of addictions.
True, when you try to connect everything together, your head may hurt.
At one time, I ended up throwing everything away and mostly using bicycles.
In particular, I made a simple wrapper over SQL::Abstract, Apache::DBI held the connection to the database, Apache2::Session handled sessions with forwarding to Apache2::Session::Memcached, TT was the templating engine, and a self-written class on based on Apache2::Request, inspired by Apache2::Controller.
By the way, CMS Movable type is kind of like a napalm burn. Unfortunately, I didn’t manage to touch it in detail, but a cursory glance made it pleasant to the eye. From there you can carry ideas.
PS. sorry, in the exact names of the classes could screw up.
I'm a little shocked, I have only one question - why? Is it really impossible to use more human web technologies?
Perl is really not meant to be used in this way. You need to use specific modules for specific tasks. From my experience of writing fairly large projects in perl - you don't need a framework)
I can recommend catalyst. Pretty well described. (there is a large and sensible tutorial)
In general, you should search on search.cpan.org and on github
Mojo is quite simple and IMHO is quite suitable for a thesis. We already wrote about Catalyst here. Mason is a very powerful thing, but IMHO it is inconvenient for learning, because it encourages the mixing of logic and presentation, and you are unlikely to get to its most delicious buns right away. For learning, as metamorph wrote, it helps a lot to write bikes "inspired" by the best you've seen from others.
ZY if you will choose a wrapper over a DB, I beg, DO NOT take DBIx::SearchBuilder.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question