Introduction
  • Introduction
  • What You Get, What to Expect, and How to Get the Most Out of This Course
  • Course Downloads
  • Course pre-requisites.
Getting Started: Finding or Installing Perl on Your Computer
  • Finding Perl on a Unix or Linux computer.
  • Downloading Perl onto a Unix or Linux computer.
  • Finding Perl on a Windows Computer
Creating Your First Perl Program
  • Hello, World Created, Explained, and Run
Getting Data Into Your Perl Program
  • Perl Number Literals -- what they are and how to work with them
  • Perl String Literals and String Scalars
  • String Exercise Solution and Perl Strings Review
  • Getting User Input into Your Perl Programs
  • Perl Operators and Solving a Classic Computer Science Problem with Perl
  • If control structures and Comparison Operators
  • While loops, Operator Precedence and Associativity
  • Exercising Your New Knowledge!
  • Exercise Key
  • Section 4 Challenge program
Working with Arrays in Perl
  • Lists, Arrays, and Array Operators
  • Push and Pop programs to play with, plus an Exercise using the Splice operator
  • Getting to Array Values, More Array Operators
  • Looping through Arrays with "foreach" and "each"
  • How Perl views the "Context" of Arrays
  • Exercises Using Arrays
  • Array Exercise Solutions
  • More (Optional) Array Exercises
Perl Subroutines
  • Subroutines - What they are and how to create them
  • Subroutine Example
  • Subroutine Variables, Return Values, and Odds & Ends
  • Subroutine Exercise
  • Subroutine Exercise Key
  • More (Optional) Subroutine Exercises
Perl Input and Output
  • The "Line Input Operator" and Perl's Favorite Default Variable
  • The "Diamond Operator" method of data input
  • Output using the "print" operator
  • Output using the "printf" operator
  • Input and Output using File Handles
  • Ensuring File Handles open successfully, and the "say" operator
  • Input, Output Exercise
  • Input, Output Exercise key
  • More (Optional) Input and Output Exercises
The "Hash"
  • Intro to Hashes in Perl
  • Getting Values into and out of Hashes
  • Hash Interpolation
  • Hash Examples
  • Exercise using Hashes
  • Hash Exercise Key
  • More (Optional) Hash Exercises
Regular Expressions
  • Introduction to Regular Expressions
  • Regular Expression Example # 1
  • Regular Expression "Back References" and "Character Classes"
  • Regular Expression Example # 2
  • Regular Expression Exercises 1
  • Regular Expressions Exercise 1 Key
  • The Pattern Match Operator and Match Modifiers
  • Modifiers Continued along with "Anchors"
  • Regular Expression Exercises # 2
  • Regular Expression Exercises # 2 Key
  • The "Binding" Operator and "Match Variables"
  • Regular Expression Exercises # 3
  • Regular Expression Exercises # 3 Key
  • More on Match Variables
  • General Quantifiers and Regular Expression Precedence
  • More (Optional) Regular Expression Exercises
  • The Perl "Substitution", "Split", and "Join" operators
  • Perl Greediness; Substitution, Split, and Join Examples
  • Regular Expression Exercises #4 and #5
  • Regular Expression Exercises #4 and #5 Solutions
More Control Structures
  • Unless and Until
  • Unless Exercise and Solution
  • Naked Control Blocks, Auto-Increment and Auto-Decrement
  • "For" and the Ternary Operator
  • Example Program and Exercise
  • Another program and Exercise Challenge
  • Logical Operators
  • Logical Operator Program and Exercise
Ready-made Perl code for YOU -- i.e. Modules
  • Introduction to Perl Modules -- What they are
  • Using Perl Modules
  • Working with Module Subroutines
  • Installing Modules
  • Module Exercise
  • Module Exercise Solution
  • Adding Modules Offline
A Most Powerful Perl Capability -- References
  • What is a Reference?
  • Nested References
  • Dereferencing and Dereferencing Exercise
  • Dereferencing Exercise Solution
  • The Simplest Dereferencing Form