Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There are a lot of possibilities, depending on what you want to do. </p> <p>If you want to take advantage of the speed of mod_perl, but the simplicity of vanilla CGI, check out the <a href="http://search.cpan.org/~gozer/mod_perl-2.0.4/docs/api/ModPerl/Registry.pod" rel="nofollow noreferrer">Modperl::Registry</a> distribution from CPAN. This will allow you to run your plain CGI scripts largely unaltered.</p> <p>In terms of frameworks, I'm a big fan of <a href="http://search.cpan.org/dist/CGI-Application/lib/CGI/Application.pm" rel="nofollow noreferrer">CGI::Application</a>. It provides a very simple inheritance-based framework that handles most everything a web application will need to do, giving you the freedom to design your application the way you like. A simple app can be done in a monolithic fashion; a more complex one can use a full-fledged <a href="http://en.wikipedia.org/wiki/Model-view-controller" rel="nofollow noreferrer">MVC</a> design. Like Perl in general, CGI-App gives you a lot of options and generally stays out of your way. </p> <p>CGI-App supports the excellent <a href="http://search.cpan.org/~samtregar/HTML-Template-2.9/Template.pm" rel="nofollow noreferrer">HTML::Template</a> module by default, and has plugins for other templating systems such as the spectacular <a href="http://search.cpan.org/~abw/Template-Toolkit-2.20/lib/Template.pm" rel="nofollow noreferrer">Template Toolkit</a>. There are also a plethora of <a href="http://cgi-app.org/index.cgi?Plugins" rel="nofollow noreferrer">plugins</a> for other purposes.</p> <p>If you want more work done for you, check out <a href="http://www.catalystframework.org/" rel="nofollow noreferrer">Catalyst</a>. This way of doing things may be more familiar if you've used Ruby on Rails. </p> <p>Other popular web-app frameworks include <a href="http://search.cpan.org/~sartak/Jifty-0.80408/lib/Jifty.pm" rel="nofollow noreferrer">Jifty</a> and <a href="http://search.cpan.org/~merlyn/CGI-Prototype-0.9053/lib/CGI/Prototype.pm" rel="nofollow noreferrer">CGI::Prototype</a>, written by Randal Schwartz, which is based on the <a href="http://search.cpan.org/~teverett/Class-Prototyped-1.11/lib/Class/Prototyped.pm" rel="nofollow noreferrer">Class::Prototyped</a> object framework.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload