Exercises, examples and other material relating to training module P412. This topic is presented on public course
Using Perl on the Web
The CGI.pm module provides a huge array of subroutines that enable you to handle CGI requests and generate HTML web pages in response without having to code down to the URL decoding and tag generation level yourself.
Related technical and longer articles
Handling Cookies through CGI.pm
Articles and tips on this subject | updated |
2231 | What is CGI.pm / A dozen new examples Perl's CGI.pm module allows both a structured and Object Oriented approach to generating and handling web pages via the Common Gateway Interface. It was written (a long time ago now) to provide a library of routines to help Perl programmers write web applications without having to (re)write or roll ... | 2009-06-12 |
Examples from our training material
Background information
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
Introduction.
Cautionary Notes.
What does CGI.pm provide?.
Using CGI.pm to produce your HTML.
Using the Object Oriented interface of CGI.pm.
Methods to produce HTML.
Anchors and Images.
Lists.
Tables.
Other HTML element support.
Producing a form.
Reading back form data.
Debugging tools.
State and cookies.
What is state?.
Maintaining state using CGI.pm and hidden fields.
Issues with maintaining state.
Using cookies to maintain state.
Using CGI for cookies.
A scheme for applications that maintain state.
A shopping cart example.
Other topics.
Handling fields in multiple.
The Environment.
Handling special characters in output text.
File upload.
Further uses of header.
Writing your own client (LWP).
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Ruby,
Lua,
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses 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.