Eric's Online Perl Tutorial - Basic & Advanced Perl Programming
Eric's Online Perl Tutorial
Perl - Scripting Basics & Advanced Techniques
WM112/WM113 Merrimack College Webmaster Certificate Program
Eric D. Larson, Instructor
eXXXXlarson@ericdlarson.com
Recommended Texts:
Learning Perl
Second Edition
Randal L. Schwartz & Tom Christiansen
O'Reilly & Associates, Inc. 1997
ISBN: 1-56592-284-0
CGI Programming on
the World Wide Web
Shishir Gundavaram
1st Edition March 1996
1-56592-168-2, Order Number: 1682
450 pages, $32.95
Webmaster In
A Nutshell
By Stephen Spainhour & Valerie Quercia
1st Edition October 1996
374 pages, $19.95
Course Objectives:
Perl, Perl, and nothing but Perl... well ok, maybe some CGI
stuff too!
This course will take you through all aspects of Perl programming and
how it can be used for web development.
Data Structures: Scalars, Arrays, Hashes
Control Blocks: if/then/else, while/for/foreach loops
Basic I/O: File Handles, STDIN/STDOUT
Advanced I/O: Interacting with the OS, Working with Files & Directories,
Formats
Regular Expressions: Pattern Matching, Substitutions
Functions: Subroutines
CGI Programming in Perl: Dynamic HTML Generation, Form Processing
Perl Packages: Modules, Reusable Code
LWP: The Web Library for Perl
Session 1
Handout 1 Handout
2
Unix Commands
Handout
HTML Color Table
Handout:Hello
World/print examples
Assignment: Skim over Preface & Chapter 1, Read Chapter 2
- Homework #1
Session 2
Handout
Scalar Data & Data Manipulation: Operators
Programming Style: Use of comments, indenting, blank space/spacers
Getting Input from the user: <STDIN> as a scalar value
In-Class Assignment: Exercises 1, 2, 3, 4 p. 47
Handout: Ch2 Exercises
Assignment: Read Chapter 2 (if you haven't already), 3 &
4 - Homework #2
Session 3
Handout1
Session 4
Handout
Hashes (cont.)
STDIN & STDOUT
Assignment:
Read Chapter 8, 10, 14(pages 142-147 only)
Session 5
Handout
Functions
File Handles
System I/O
Session 6
Handout1 Handout2
The Perl CGI Module
Form Processing with Perl
Assignment:
Session 7
Handout 1
Other cool stuff you should know...
Packages
How to use cron
Session 8
Regular Expressions & Pattern Matching
Session 9
Hash & Array References, Records
Session 10
Mail & Web Clients
Sending Email with Perl
Session 11
Parsing and Scraping HTML with Perl
Session 12
File Locking
Session 13
Perl FTP Clients
Session 14
Database Access in Perl
Perl Related Web Sites: