Introduction to Perl: Academic Year 2014-5, January 2015
d.white@imperial.ac.ukThis web page contains all the materials for my Introduction to Perl Short Course, that I gave between 12th-14th January 2015, to Dept of Computing second year students.
Changes this year:
- Added more one-liners.
- Added some material about Modern versions of Perl.
- For the time ever, while I included CGI in the notes, I deliberately skipped CGI in the presentation.
- Added a paragraph about Perl MVC Web frameworks.
- Added a paragraph about Perl ORM module DBIx::Class.
- Added a paragraph about Moose to the slides, and some Moose examples in the Extra Notes document.
Here are the course materials, covering the lectures, some exercises and some extra notes.
These materials are also available on CATE, the Department's teaching support system, under course 277. But DoC students should alredy know how to access that:-)
First Lecture
- Here are the PDF full size slides for the first lecture.
- Here are the PDF 4-up lecture notes for the first lecture.
- And here are the examples for the first lecture, as a gzipped tar file that will create a directory called lect1-examples.
Second Lecture
- Here are the PDF full size slides for the second lecture.
- Here are the PDF 4-up lecture notes for the second lecture.
- And here are the examples for the second lecture, as a gzipped tar file that will create a directory called lect2-examples.
Third Lecture
- Here are the PDF full size slides for the third lecture.
- Here are the PDF 4-up lecture notes for the third lecture.
- And here are the examples for the third lecture, as a gzipped tar file that will create a directory called lect3-examples.
Fourth Lecture
- Here are the PDF full size slides for the fourth lecture.
- Here are the PDF 4-up lecture notes for the fourth lecture.
- And here are the examples for the fourth lecture, as a gzipped tar file that will create a directory called lect4-examples.
Fifth Lecture
- Here are the PDF full size slides for the fifth lecture.
- Here are the PDF 4-up lecture notes for the fifth lecture.
- And here are the examples for the fifth lecture, as a gzipped tar file that will create a directory called lect5-examples.
Example CGI Scripts from the Fifth Lecture
- Here is eg1.cgi: a first trivial example.
- Here is eg2.cgi: first example using CGI.
- Here is eg3.cgi: a silly form.
Sixth Lecture
- Here are the PDF full size slides for the sixth lecture.
- Here are the PDF 4-up lecture notes for the sixth lecture.
- And here are the examples for the sixth lecture, as a gzipped tar file that will create a directory called lect6-examples.
Seventh Lecture
- Here are the PDF full size slides for the seventh lecture.
- Here are the PDF 4-up lecture notes for the seventh lecture.
- And here are the examples for the seventh lecture, as a gzipped tar file that will create a directory called lect7-examples.
Eighth Lecture
- Here are the PDF full size slides for the eighth lecture.
- Here are the PDF 4-up lecture notes for the eighth lecture.
- And here are the examples for the eighth lecture, as a gzipped tar file that will create a directory called lect8-examples.
Some Exercises for you to try
Here are some Perl exercises you might like to work through.
- Here are the PDF full size exercises.
- Here are the PDF 4-up exercises.
Some Extra Notes
Here are some extra notes for Perl material that didn't make it into the course, which may still be of interest.. Much of this discusses Moose, a new OO system for Perl, mentioned briefly in Lecture 6. The mooseperson-v1 and mooseprogrammer-v1 directories mentioned in these extra notes may be found in the examples for the sixth lecture tarball.
- Here are the PDF full size extra notes.
- Here are the PDF 4-up extra notes.
dcw@doc.ic.ac.uk
Updated: January 2015![]()
![]()