It has been a while since writing a CGI frontend to an application… In fact, CGI.pm was the way to do things when I last wrote a CGI application with Perl.
Was having a look at Catalyst and CGI::Application as MVC frameworks. I decided that the learning curve for Catalyst was a little too great to start with and opted for CGI::Application (Catalyst does look really good though).
Some example code which I have found useful knocking up a test application:
- http://www.perlmonks.org/?node_id=622071 – Beginners Guide
- http://www.perlmonks.org/?node_id=516037 *
- http://articles.sitepoint.com/article/cgi-application – Sample Application
- http://docs.google.com/Doc?id=dd363fg9_77gb4hdh7b
* Found the reply from “Belgarion (Chaplain) on Dec 12, 2005 at 16:38 UTC” useful explaining the order in which CGI::Application (CAP) runs:
- cgiapp_init()
- setup()
- cgiapp_prerun()
- your selected run mode
- cgiapp_postrun()
- teardown()
Links:
- CGI::Application – http://cgi-app.org/
- Catalyst Framework – http://www.catalystframework.org/
0 responses so far ↓
There are no comments yet...
Leave a Comment