|When||Mondays and Wednesdays at 2:00pm-3:00pm from January 13 through March 5|
|Office hours||by appointment only|
|nclement 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. 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!
|1||Mon||January 13||Course overview; Survey; Perl introduction; First program|
|2||Wed||January 15||Perl basics: Data types; Variables; Sigils; Defined-ness; Truth; Control flow|
|Mon||January 20||Martin Luther King, Jr. holiday - no class|
|3||Wed||January 22||Perl basics: Context; String literals and quoting; Lists; Intermediate iteration; I/O||Assignment 1|
|4||Mon||January 27||Intermediate file I/O, array and hash manipulation; Special variables|
|5||Wed||January 29||Advanced iteration; other print functions; Variable scoping||Assignment 2|
|6||Mon||February 3||Functions; Perl warning modes; Introduction to Regular Expressions; Basis in Automata|
|7||Wed||February 5||Regular expressions: Operators, Metacharacters, Character classes, basic assertions||Assignment 3|
|8||Mon||February 10||Practical regular expressions; Advanced regular expressions|
|9||Wed||February 12||References; Data structures||Assignment 4|
|10||Mon||February 17||Using modules and objects; Packages; Object-Oriented theory|
|11||Wed||February 19||Tied variables; some real-world examples||Assignment 5|
|12||Mon||February 24||Perl CGI Introduction|
|13||Wed||February 26||Perl DBI||Assignment 6|
|14||Mon||March 3||discussion of final; catch-up and/or discussion/demonstration of practical issues|
|15||Wed||March 5||Looking ahead: Perl 6||Assignment 7|
|Wed||April 2||final project due at 12 noon, no late turn-in||Final Project|
The instructor reserves the right to adjust this schedule if necessary.