Intermediate Perl

Course Description

This three-day course enables students to progress from basic level Perl programming concepts to more advanced Perl programming features.
3 days
Contact us for pricing
 

Prerequisites

Programming experience in a structured language, such as C, C++, Java, or COBOL, is
required as well as a basic familiarity with the Perl language.

Advanced Regular Expressions

Review: Basic Regular Expressions Modifiers
Getting the Nth Occurrence of a Match
Greedy vs. No-Greedy Matches
Regular Expression Variables
Special Characters in Regular Expressions
Assertions
Reading from Filehandles Using Split
Multiple Line Matching
Commenting Regular Expressions
Alternative Delimiters
Additional Resources

Advanced Formatted Output

Review: The Format Statement
Advanced Format Statement Features
printf and sprintf
Using Select
The <> Operator
Additional Resources

Exploring Useful Built-In Variables

Perl’s Built-In Variables
Variables Reference Chart
Use English
ID Variables
Status variables
Separator Variables
The Signal Handle Variable
Version of Perl
Program Start Time
Additional Resources

Advanced File Handling

Review: Basic File Handling
Displaying the File Position
Moving the File Position
Opening Files for Reading and Writing
Making “Files” within Your Script
Locking Files
Flushing Output Buffers
Additional Resources

Pragmas

Perl Pragmas
Pragma Chart
Review: use strict
Predeclaring Subroutines
Predeclaring Global Variables
Additional Resources

Exploring Useful Built-In Modules

Built-In Modules
Module Table
Cwd
Env
File
Math
Sys
Text
Fatal
Additional Resources

Debugging Tools

Review: The –w Switch
Review: The Perl Debugger
Debugger Commands
Diagnostics
Carp
Data::Dumper
Additional Resources

Perl/TK Basics

Working with Windows
Types of Widgets
Geometry Managers
Creating Widgets
The OO Nature of the Tk Module
Additional Resources

Perl TK Widgets

Frames
Labels
Buttons
Checkbuttons
Radiobuttons
Listboxes
Scrollbars
Scales
Entries
Creating Menus
Additional Resources

Geometry Managers

pack Options
The –after and –before Option
The –anchor and –side Options
The –fill Option
Padding with Pack
Managing Widgets with Pack
Binding
The Focus Command
Additional Resources

PerlPerl Programming