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 articlesHandling Cookies through CGI.pm
|Articles and tips on this subject
|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 ...
Examples from our training material
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
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.
Other HTML element support.
Producing a form.
Reading back form data.
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.
Handling fields in multiple.
Handling special characters in output text.
Further uses of header.
Writing your own client (LWP).
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.