Compuware Perl Class Syllabus
Prepared by Bill Kilgallon,
Bill@KilgallonFamily.com
What this class hopes to accomplish.
Resources for the Perl Student, and where to find them.
The basics of getting and running Perl.
- Running Perl Basics
- Automating Perl Execution
- Better Automation of Perl
Execution
Simple variable types, what they are and what you can do with
them.
- Scalar Numeric Literals
- Single Quoted String Literals
- Double Quoted String Literals
- Scalar Operators for Numbers
- Scalar Operators for Strings
- Operator Precedence and Associativity
- Converting Between Numbers and Strings
- Scalar Variables
- Scalar Operators and Functions
- Binary Assignment Operators
- Auto Increment and Auto Decrement
- Chop and Chomp
- String Interpolation
- Reading Standard Input
- Output with Print
Complex variable types, what they are and what you can do with them.
- Introduction to Perl Arrays
- Array Literal Representation
- Array Constructor Operator
- The Quote Word Function
- Array Variables
- Array Variable Assignment
- More Array Variable
Assignment
- Even More Array Variable
Assignment
- Array Element Access
- Yet More Array Element
Access
- Pushing and Popping
- Shifting and Unshifting
- Reverse
- Sort
- Chomp
- Reading Standard Input
- Variable Interpolation of Arrays
- Hashes
- Literal Hash Representation
- Common Hash Functions: Keys
- Common Hash Functions: Values
- Common Hash Functions: Each
- Common Hash Functions: Delete
- Hash Slices
Control Structures
Different ways of
controlling the flow of your program execution.
- Statement Blocks
- If and Unless
- While and Until
- Do While and Do Until
- For Loops
- Foreach
- Last
- Next
- Redo
- Labeled Blocks
- Expression Modifiers
- "&&" and "||" as Control Structures
Program Input and Output
Reading and writing files, and talking to other programs.
- Program Input and Output
- Reading from the Diamond Operator
- Writing to standard out
- Using Printf
- File Handles
- Opening and Closing File Handles
- Die
- Using Filehandles
- The -x file tests
- System and Exec
- More Secure System Calls
- Backquotes
- Processes as Filehandles
- Fork
Regular Expressions
How to use pattern
matching to replace pages of code with a single command.
- Concepts and Editorials
- Matching (contains)
- Match Patterns ("[]")
- Negation and Predefined Character Classes
- Examples
- Match Patterns ("*")
- Match Patterns ("+")
- Match Patterns ("?")
- Match Anchors ("^")
- Match Anchors ("$")
- Multipliers
- Parentheses as Memory
- Alternation
- Ignoring Case
- Variable Interpolation of Match
Expressions
- More Magic Variables
- Substitutions
- Split
- Join
- Real World Example (1)
- Real World Example (2)
- Real World Example (3)
- Real World Example (4)
- Real World Example (5)
- Homework Three
Functional Decomposition
How to break up your
program with the use of packages and subroutines, and how to use
variable scoping effectively.
- Introduction
- Function Global Scoping
- Function Local (my) Scoping
- Function Local (local) Scoping
- Functional Decomposition
- Function Return Values
- Homework Four
References
How to store and use the location of scalars,
arrays, and hashes.
- Introduction
- References to Scalars
- References to Arrays
- References to Hashes
- Sample Program
Report Generation
How to use Perl to easily generate great looking reports.
Database Access
Perls built in database
capability and how to use it for simple tasks (overview).
- Making Hashes Persistent
- Opening a DBM Hash
- Using a DBM Hash
- Closing a DBM Hash
- Excercise
CGI Programming
Perls built in CGI
capabilities, and how to use them for simple tasks (overview).
- HTML Background
- HTML Hello World
- Using the Perl CGI Module
- Simple Perl CGI Constructs
- Excercise
Next: Course Objectives