| When | Mondays and Wednesdays at 11:00am-noon from August 24 through October 17 |
| Where | GAR 2.112 |
| Web | http://www.cs.utexas.edu/~cdunham/cs105/ |
| Instructor | Curtis Dunham |
| Office hours | TBA, or by appointment |
| cdunham at cs.utexas.edu (Please include cs105 in the subject) | |
| Prerequisites | CS 307, 313E, or EE 422C (or 322C) with a grade of at least C- |
Perl is a programming language that combines the modern robustness of Java with the expedient pragmatism of scripting languages. It offers both the low-level system access of C and the high-level elegance of Lisp. One of its mottoes is, “There’s More Than One Way To Do It.” Its flexibility makes Perl a powerful tool, but its permissiveness can lead to incomprehensible code or mysterious bugs.
This course provides a brief introduction to the language for students who want to add Perl to their toolbox. It assumes familiarity with the fundamental elements of computer programming, but no prior experience with Perl or any other particular language is necessary. Brief weekly assignments will give students hands-on experience writing, debugging, and revising Perl programs. A final project will exercise students' ability to develop a slightly more involved program, integrating concepts familiar from the weekly assignments.
No textbook is required. All assignments should be possible to complete using only the lecture notes and the Perl documentation that it specifically mentions. The perl man page is a great place to start.
However, to get the most out of this course and Perl itself, a book is a great investment. The standard O'Reilly trilogy is Learning Perl (the llama book), Intermediate Perl (the alpaca book), and Programming Perl (the camel book). My presentation will be aimed at maximizing pedagogical value, just like the Llama, so in a sense it is redundant with the lecture materials, but depending on your learning style it may be helpful to have an alternative. The Camel on the other hand is more of a reference, which may be helpful if you want an alternative to the online documentation. Beginning Perl (3rd edition) by James Lee is the closest to my course in terms of content. A very good (and free on the web in PDF) resource is chromatic's Modern Perl. After this course is over and you still like and/or want to use Perl, I highly recommend Effective Perl Programming by Joseph N. Hall, et al. as well as books by Damian Conway and Mark Jason Dominus.
If you find yourself wanting more examples or explanations, I highly recommend purchasing a book!
| Lecture | Day | Date | Topic |
|---|---|---|---|
| 1 | Wed | August 24 | Course overview; Survey; Perl introduction; First program |
| 2 | Mon | August 29 | Perl basics: Data types; Variables; Sigils; Defined-ness; Truth; Control flow |
| 3 | Wed | August 31 | Perl basics: I/O; Context; String literals and quoting; Lists; Intermediate iteration |
| Mon | September 5 | Labor Day holiday - no class | |
| 4 | Wed | September 7 | Intermediate file I/O, array and hash manipulation; Special variables |
| 5 | Mon | September 12 | Advanced iteration; other print functions; Variable scoping; Functions |
| 6 | Wed | September 14 | Perl warning modes; Introduction to Regular Expressions; Basis in Automata |
| 7 | Mon | September 19 | Regular expressions: Operators, Metacharacters, Character classes, basic assertions |
| 8 | Wed | September 21 | Practical regular expressions; Advanced regular expressions |
| 9 | Mon | September 26 | References; Data structures |
| 10 | Wed | September 28 | Using modules and objects; Packages; Object-Oriented theory |
| 11 | Mon | October 3 | Tied variables; some real-world examples |
| 12 | Wed | October 5 | Miscellaneous helpful things |
| 13 | Mon | October 10 | More helpful things |
| 14 | Wed | October 12 | discussion of final; catch-up and/or discussion/demonstration of practical issues |
| 15 | Mon | October 17 | Looking ahead: Perl 6 |
| Fri | October 28 | final project due at 10:00 AM, no late turn-in |
The instructor reserves the right to adjust this schedule if necessary.