A Perl Course

Uta Priss
 

There is a newer version of these materials available here.

This is a generic version of a class "Computer Programming for Information Management" that I taught twice a year at the School of Library and Information Science, Indiana University Bloomington. The materials in this course are mostly self-explanatory and can be used for self study. (There are some references in the materials to Indiana University accounts and settings which should be ignored.) It will probably take several weeks to work through the materials. For shorter introductions to Perl see Nik Silver's Perl Tutorial or Selena Sol's Introduction to Perl 5.

Notes: 1) I created most of the exercises in this course myself but some of the examples are based on the Perl Tutorial, the Learning Perl Book and Introduction to Perl 5. The materials in this course are copyrighted.

2) Please only contact me in case you found errors in the text or have comments. Please, don't contact me with questions about how to solve the exercises.

3) I will not be responsible for any possible damage that any of the scripts and exercises in this course may have. This holds especially for CGI scripts that may pose security risks on a web server. It is up to the person who uses any of the materials in this course, to use the materials in a safe environment and to keep up to date with CGI security recommendations (the ones in Week 11 are probably not sufficient).


Week 1. Programming basics

Exercises Answers

Week 2. Operators and if statements

Exercises Answers

Week 3. Logical expressions

Exercises Answers

Week 4. Program design and control structures

Exercises Answers

Week 5. Arrays, Hashs and File handling

Exercises Answers

Week 6. CGI I (forms)

Exercises Answers

Week 7. Regular expressions I

Exercises Answers

Week 8. Regular expressions II (substitution, transliteration, split)

Exercises Answers

Week 9. Subroutines, local and global variables

Exercises Answers

Week 10. Retrieving documents from the web with Perl

Exercises Answers

Week 11. CGI II (Searching web pages on-line; security)

Exercises Answers

Week 12. CGI III (Environment variables, hidden text and cookies)

Exercises Answers

Week 13. Object oriented paradigm I (Objects, classes, methods)

Exercises

Week 14. The object oriented paradigm II (Class hierarchy, inheritance, polymorphism and encapsulation)

Exercises
Copyright 2000, Uta Priss
Back to my home page