Exercises, examples and other material relating to training module P774. This topic is presented on public course
Using Perl on the Web
Using Perl on the Web - CGI, mod-Perl, and other standards. Sessions, cookies, content management, etc.
This advanced course takes the Perl programmer ... http://www.wellho.net/course/pwfull.html [course] |
I answered a question along the lines of "how much will it cost to put my [6 page] web form online" yesterday, and found myself coming up with a list ... http://www.wellho.net/mouth/261_Putt ... nline.html [short article] |
How's your Perl knowledge? I've just updated our Perl Quiz where you can try 15 questions at a beginner, intermediate or advanced level and see how ... http://www.wellho.net/mouth/262_A-li ... -Quiz.html [short article] |
Some tasks have a natural positive harmony; I find that's the case with training where an enthusiastic tutor, trainees who are attending because they ... http://www.wellho.net/mouth/263_Harmony.html [short article] |
$nquestions = 15;
$noptions = 4;
@pascal = (1,1);
foreach $row (1..$nquestions+1) {
$pnew[0] = 1;
for ($k=1;$k http://www.wellho.net/resources/ex.php4?item=p774/q15.pl [code sample] |
package questionset;
use strict;
use thing;
our @ISA = ("thing");
sub new {
my($class, $subject, $oldset, @topicbase) = @_;
my %self;
... http://www.wellho.net/resources/ex.php4?item=p774/questionset.pm [code sample] |
package thing;
use strict;
sub new {
my %self;
my ($class,@rest) = @_;
unless ($#rest%2) { die "Odd parameter count\n"}
... http://www.wellho.net/resources/ex.php4?item=p774/thing.pm [code sample] |
This topic is presented on public course
Using Perl on the Web
Examples from our training material
| Perl.1 | Some sample quiz questions |
| main.htp | Template for Quiz system demo |
| q15.pl | Quiz - Statistical table generator |
| questionset.pm | Business logic for quiz system demo |
| quiz.pl | Top level code for quiz system demo |
| thing.pm | Generic object used within business logic |
| whc_web.pm | Web helpers for quiz demo (and others too) |
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
http://www.training-notes.co.uk.
Topics covered in this module
Planning your application.
Techniques.
State diagrams.
The six step process..
Sticky fields and sanitising user inputs.
Cleaning up old carts.
The 4 layer model.
Templating.
Web helpers.
Business logic..
Top layer.
Sample quiz question system using these techniques.
Top-level code.
Web helpers.
Template.
Business Logic.
Should you use cookies or hidden fields?.
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
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. Also
available is the Opentalk
Forum for discussion of technical questions.