This course is based on a rather excellent Perl book called:
Perl: A Programmer's Companion, by Nigel Chapman, published by John Wiley & Sons (1997).
I have tried to remain as faithful as I can to the contents of the text.
Paul's Introduction to Perl.
Processing Text Files with Perl.
When you are happy you understand the "Files" material,
have a go at doing the exercises from Chapter 2 of the textbook.
You can download all of the textbook exercises here. Note: they are in Acrobat format.
Working with simple scalar variables in Perl.
Perl Laboratory #1 - a real easy one to get you started.
Perl Laboratory #2 - more simple drill exercises, which follow-on from Lab #1.
Perl Laboratory #3 - using substitutions and translations.
Perl Laboratory #4 - some complete example scripts which use variables. (The second script comes from the exercises in the textbook).
You now know enough to attempt the rest of the exercises from Chapter 3 of the textbook.
Controlling program flow with Perl.
Perl Laboratory #5 - the small interpreter.
Working with lists in Perl.
Working with hashes in Perl.
Doing file I/O in Perl.
Perl Lab #6: Working with Lists and Hashes
You now know enough to attempt the exercises from Chapters 4, 5 and 6 of the textbook. Be warned: some of them assume you have a copy of the textbook.
Return to the Tutorials Page