Using CGI and Perl to put a simple application online. Sometimes still the best way.
These days, it's fashionable to embed Perl, PHP, Python or Rails within a web framework if you want to put your application code online - in other words, if you want to take logic that's tried and tested and make it web available. And there's much to be said for this fashion - it provides a whole series of facilities and security checks which you don't have to keep re-coding yourself. If you're writing substantial systems, I'll encourage you to use such a framework, and indeed I'll introduce to you Django
as an extra day on the end of your Python or Ruby course.
... if you just want to add a simple, one-page script onto your web site, there's still a lot to be said for KISS - "Keep It Simple, Stupid" - and that can be achieved through the Perl and the Common Gateway Interface.
On last week's Perl course
, I wrote a complete CGI example that looks up data from within a large data file - a simple, single page filtering application. It's robust, secure, easy to use and it doesn't use any of the complicated day-to-even-start frameworks. Source code [here]
; data file [here]
. (written 2012-09-30, updated 2012-10-13)
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articlesP221 - Perl on the Web 
Perl and the Common Gateway Interface - out of fashion but still very useful? - (2009-12-26) 
From Web to Web 2 - (2007-05-21) 
Answering ALL the delegate's Perl questions - (2006-12-09) 
Presentation, Business and Persistence layers in Perl and PHP - (2006-04-17) 
An unhelpful error message from Apache httpd - (2006-03-30) 
Simple but rugged form handling demo - (2006-03-10) 
Danny and Donna are getting married - (2006-02-03) 
Running a Perl script within a PHP page - (2005-11-12) 
FTP - how to make the right transfers - (2005-09-01)
Some other Articles
Mixed mode travel - Information systems From Structured to Object Oriented Programming.Public Transport Services - from and to MelkshamOctober to December 2012 - Public CoursesUsing CGI and Perl to put a simple application online. Sometimes still the best way.Using Perl to read an RSS feed off a web site and extract data - via LWP and XML modulesHenbury loop, Bristol - a freight railway line with passenger potential?Trains across Wiltshire - an update on the TransWiltsOn getting noticed for the right reasons when you ask about job availabilityWriting more maintainable Perl - naming fields from your data records
4252 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86 at 50 posts per page
This is a page archived from The Horse's Mouth at
the diary and writings of Graham Ellis.
Every attempt was made to provide current information at the time the
page was written, but things do move forward in our business - new software
releases, price changes, new techniques. Please check back via
our main site for current courses,
prices, versions, etc - any mention of a price in "The Horse's Mouth"
cannot be taken as an offer to supply at that price.
Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).