Computer Sciences Department logo

CS 368-1 (2011 Summer) — Introduction to Perl

Offered by the University of Wisconsin–Madison, Department of Computer Sciences


Dates July 11 (Mon) through August 5 (Fri) — four weeks
Times MoTuThFr 11:00–11:50 a.m.
Location Psychology 103
Instructor Tim Cartwright : CS 4265 : cat [@] cs [.] wisc [.] edu
Mailing List compsci368-1-su11-hdd [@] lists [.] wisc [.] edu

Course Books & Other Resources

There are no books to buy for this course. The two reference books that we suggest using are available for free online through the UW library system.

Head over to the resources page for links to the book and lots of links to other scripting resources.

Also check out the page for the other 2011 Summer CS 368 section — Advanced Python!

Office Hours

Wednesdays, 10–11 a.m. and Thursdays, 2–3 p.m. in CS 4265 (my office)

You can also make an appointment (by email is probably best) to talk to me. I work full time here in the CS building, so will often be available. However, dropping by my office without an appointment is not guaranteed to work.


I plan to post slides and homework assignments on their appointed days.

# Day Topic Reading Slides Code Homework
1 11 July (Mon) Introductions & Overview LP4: Ch.1, Introduction PDF homework
2 12 July (Tue) Basic Syntax LP4: Ch.2, Scalar Data PDF code homework
3 14 July (Thu) Collections LP4: Ch.3, Lists and Arrays
LP4: Ch.6, Hashes
PDF code homework
4 15 July (Fri) Basic I/O LP4: Ch.5, Input and Output PDF code homework
5 18 July (Mon) Subroutines LP4: Ch.4, Subroutines PDF homework
6 19 July (Tue) Standard Library PP3: Ch.29, Functions [skim] PDF homework
7 21 July (Thu) Data Structures perlreftut PDF homework
8 22 July (Fri) Regular Expressions I
LP4: Ch.7, In the World of RegExps
LP4: Ch.8, Matching with RegExps
PDF code homework
9 25 July (Mon) Regular Expressions II
(adv REs & usage)
LP4: Ch.8, Matching with RegExps
LP4: Ch.9, Processing Text with RegExps
PDF homework
10 26 July (Tue) System Interaction LP4: Ch.14, Process Management PDF homework
11 28 July (Thu) Correctness
(errors, debugging, testing)
PP3: Ch.20, The Perl Debugger
Perldoc: Test::Simple, Test::More
PDF homework
12 29 July (Fri) Recipes I:
dates, times, writing files
[pick sections of interest]
PC2: Ch.3, Dates and Times
PC2: Ch.7, File Access (esp. 7.11, 7.19)
PDF homework
13 1 August (Mon) Recipes II:
(mostly) numeric data
[pick sections of interest]
PC2: Ch.2, Numbers
PC2: Ch.8, File Contents
PDF code homework
14 2 August (Tue) Recipes III:
PC2: Ch.4, Arrays
PC2: Ch.5, Hashes
PDF homework
15 4 August (Thu) Security & Performance [as you see fit:]
Perldoc: perlsec
Perldoc: Benchmark module
PDF homework
16 5 August (Fri) Script Development PDF

Reading Legend: