COMSC 98 - PERL/CGI
Course Description: This course will help you become fluent in PERL, fully versed in the language syntax, semantics and elements of style. We will create Web Pages and link them to CGI scripts. These scripts will be used to generate dynamic web pages, and access files and data bases on web servers. Install Apache server software and ActiveState Perl interpreter.
EXPECTED STUDENT LEARNING OUTCOMES (SLO):
Students completing the course will be able to:
Use PERL to check user input for errors.
Use PERL to save and retrieve data stored in files.
Use PERL to do math calculations.
Instructor
: Robert Stewarthttp://home.netcom.com/~rmstewar/
e-mail: 98instructor@ix.netcom.com
SLO: www.dvc.edu/slos?comsc-098
Class Dates: 08/13/2010 - 10/15/2010.
Textbook: Diane Zak, "CGI/PERL". Course Technology, 2002. ISBN 0-619-03440-8.
Materials: Files, graphics and instructions from class web site, copy of PKZIP, Winzip or similar software, copy of Apache and Perl interpreter. Web site at tripod.com.
Prerequisites: COMSC 95 and COMSC 96 or 97 or equivalent knowledge.
Schedule for Assignments from Book
Week 1:Chapter 1 . An Introduction to CGI and Perl. Install PERL interpreter. Using http://dvcperlstudent.tripod.com/.
Book Assignment: first.cgi.
Web Site Assignment: Create "faq.cgi" For DVC Flying Club.
Week 2: Chapter 2. Sending Data Using a Hyperlink.
Book Assignment: jackson.html, jackson.cgi.
Web Site Assignment: "index.htm" homepage, menu.html, content.cgi and pictures.cgi. Display photo gallery using CGI script.
Week 3: Chapter 3. Sending Data Using an Online Form. Install Apache web server
Book Assignment: bonus.html,bonus.cgi
Web Site Assignment: reserve.html, reserve.cgi. Print reservation confirmation from data entered in a form.
Week 4: Chapter 4. Array and Hash Variables.
Book Assignment: Do juniper.html, juniper.cgi .
Web Site Assignment: memberlist.cgi. Display club members.
Week 5: Chapter 5. Data Files.
Book Assignment: super.html, super.cgi
Web Site Assignment: Hit Counter. Add a banner page with banner.cgi.
Week 6: Chapter 6. The Selection Structure.
Book Assignment: supbowl.cgi
Web Site Assignment: Members.cgi. Display members file contents.
Week 7: Chapter 7. User-Defined Functions
Book Assignment: coffee.html, coffe.cgi
Web Site Assignment: order.html, order.cgi. On-line shopping.
Week 8: Chapter 8. String manipulation: Optional: Running CGI script on Unix server.
Book Assignment: inter.html, inter.cgi
Web Site Assignment: lookupmem.cgi. Find a member.
Week 9: Final. Optional: Running Apache with multiple users.
Grading:
To receive credit for this class, each student must take the test and complete assignments. Class test (1) accounts for 40%, Web Site assignments account for 40% and book assignments account for 20%.
Homework should be turned in every week if possible. Please zip you files for large assignments. If you are using tripod.com, send me the URL of your assignments.
Students must make a good faith effort to do the assignments correctly. This includes: reading the directions, proofreading your files source code and output and testing your work. Students who fail to do so will receive a 0 for the assignment. You will not be able to resubmit an assignment for credit if you have already received a 0 grade