Interactive Web Sites - Perl Project

Schedule

Week Information
Perl and CGI information
Part 1 of possible final project
The recommended book is CGI/Perl, Diane Zak, Course Technologies ISBN 0-619-03440-8, Note that Amazon has used copies for under $10.
Read chapter #1 and chapter #2 in the CGI/Perl text by Diane Zak. Contact me about the book used copies are available at Amazon for a few dollars and we will only use this text for a few weeks.
The information below is work I did a few years ago using another site:
Look at the first three PowerPoint presentations under the topic CGI/Perl. Presentations
This sheet shows setting the cgi to 755 as required. Setting cgi to 755
Look at the code for the programs which can be opened under Printed code to accompany examples for week #1. You can also download many (not all) of the examples from the beginning cgi/perl and beginning HTML. Examples
The examples I want you to go over are zipped. firstzip.zip
Using the web site: Using WinSCP3
Assignments:
Do one of the hands on projects from chapter #1 and one of the case projects from chapter #2. If you do not have a site yet, write them and put them online when you get a site.
If you do not have a user id and password, contact me. Remember, when you make cgi files, you need to go into properties and set the rights to 755.
Perl and CGI information
Part 2
Read chapter #3 and chapter #4. You should be starting to work with loops and if statements this week..
Some examples for this week: Examples using post and get
Examples using for loop
If you are not comfortable with if statements, this presentation will be helpful.
Presentation on logical if structures
    Separate speaker notes to accompany presentation on logical if structures
Some examples for this week: Loops and decisions (if statements)
Assignments:
Experiment with the things you read about which included passing data with the get and with the post and the basics of a for loop. You should do a program that uses the get and then change it to use the post. The for can be included or a separate program.
Loops and decisions assignment
Perl and CGI information
Part 3
Please look at arrays and hash variables this week (chapter #4).
Some examples for this week: Arrays and Hash
Be sure to read the chapter on files in your test (chapter #5). I would also like you to look at functions in the next chapter.
Some examples for this week: Files and Functions
Assignments:
Array Hash Assignment
I would like you to write a quiz where you store the scores on a file. The students should be given questions, the grade should be calculated and stored.
Extra credit if you a can figure out a way to only allow a student to take the quiz only once.
Perl and CGI information
Part 4
I want you to read chapter #6, #7 and #8 with a focus on functions.
Be sure to spend time going over my function examples from chapter #7 and #8.
Assignments:
Perl function assignment