Exercises, examples and other material relating to training module P221. This topic is presented on public courses Perl Extra
, Perl bootcamp
One of the major uses of Perl is to provide a web interface to applications so that programs can be accessed via a browser. Such applications may be written in Perl, or Perl may simply be the glueware that's used.
|Articles and tips on this subject||updated|
|3875||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 ...
|2551||Perl and the Common Gateway Interface - out of fashion but still very useful?|
Is the Common Gateway Interface dead? No - it isn't; although my first choice for a new web application these days would be something else (PHP, Java with Servlets, JSPs or a derivative, Python with Django, Ruby with Rails ...), there are often times that I'll have a bit of code that I've run away ...
|1198||From Web to Web 2|
"How do these technologies relate to Web 2?" asked one of my customers last week as we studied Apache httpd and Apache Tomcat. And of course that's followed up by the need to answer the question "What is Web 2".
Initial web sites - "Web 1" if you like - were discreet information sources provided by ...
|433||FTP - how to make the right transfers|
If you're transfeerring files from one computer to another, you'll probably use an FTP client program - either something with a GUI or the FTP command itself on your local machine, and that will talk to an FTP daemon on the server.
It's important to note that you need to navigate to the right directory ...
|975||Answering ALL the delegate's Perl questions|
During courses, questions arise. "I'll get back to that" could make people feel that I'm brushing something off ... except that I explain, early on, that some questions require a great deal of background knowledge to be answered sensibly. And I keep a list of topics that I'll be getting back to ...
|662||An unhelpful error message from Apache httpd|
"Your program doesn't work". Such reports cause technical support staff to be pulling their hair out. "In what way did it fail" they'll ask, hoping for some clue that can point them towards their caller's problem.
So why does on earth does an Apache httpd web server report:
Internal Server ErrorThe ...
Examples from our training material
|demo.pl|| First cgi program - read and echos form content|
|echo.htp|| Form / template to go with echo.pl demo|
|echo.pl|| Web basics - echo form content|
|hww.pl|| Simple CGI example with urldecoding and webify|
|job3.pl|| Select, display, edit job opportunities application|
|letterlinks.pl|| Perl on the web - simple file lookup|
|loganal.pl|| Full cgi example - log file analysis|
|nice.htp|| Template file for log analysis application|
|onweb.pl|| Looking up data in a file on the web|
|railstats-1.xyz|| data for st_look.pl demo|
|samform.html|| Sample form for an CGI script|
|sdo2.pl|| Multiple page Perl / CGI application|
|st_look.pl|| Form, template, validation, POST and GET all in one example|
|tabfeed.pl|| Display list of SQL tables and/or table content on a web page|
|templ.htp|| Template for sdo2.pl Perl / CGI demo|
Some modules are available for download
as a sample of our material or under an Open Training Notes License
for free download from [here]
Topics covered in this module
The HTML form.
Input from the form into a Perl program - URL encoding.
Output from Perl back to the browser - headers, etc.
Overview of what you can do with CGI.
Example application - web log file analysis
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule
Well House Consultants specialise in training courses in
. We run
throughout the UK (and beyond for longer courses), and
at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if you live in a different
country or continent to us
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre.