Introduction to Perl Programming

Four days; Instructor-Led

Introduction

This intensive course provides a solid introduction to the Perl programming language. Hands-on exercises reinforce key concepts

Prerequisites

Familiarity with C, prodecural programming, or shell scripting is beneficial

Course Outline

Getting Started:

• Running Perl programs

• Basic statement syntax

• Comments, variables, basic operators and functions

• Reading from standard unput, writing to standard output and standard error

Operators:

• Arithmetic, assignment, relational, logical, bitwise, and string operators

• Precedence and associativity

Flow Control:

•If-else elsif, and unless statements

• The warn(), die(), and exit () functions

• While and until loops

Working with Scalars:

• Scalar variables: character strings

• Escape sequences

Working with Lists:

• Defining and using list variables

 

• Assigning list elements to other variables

 

• Command line arguments

 

• Working with list ranges and list slices

 

Working with Hashes:

• Creating hashes from lists

• Adding and deleting hash elements

Reading and Writing to Files:

• Opening a file

• Determining file status

• Using pipes

Pattern Matching:

• Substitution and translation operators

Creating and Using Subroutines

Formatting Output:

• Value formats

File and Directory Functions:

• File access, link, and directory manipulation functions

Process, Scalar, and List Functions:

• Process, mathematical, string, scalar, list manipulation, and time functions

Process, Scalar, and List Functions:

• System Variables and Options:

• -n and -p options

References:

• Creating multidimensional arrays

Packages and Modules:

• Importing modules into a program

Object-Oriented Programming in Perl:

• Creating and using classes

 

539 Lawmoor Street
Glasgow
G5 0TT

phone: 0870 112 4899
fax: 0870 443 2651
email: info@elitetc.co.uk