Introduction to Perl Programming Essentials

Master the essentials of Perl Programming and enhance your web development and automation skills with our expert-led, hands-on course designed for experienced users.

Course Thumbnail

Essential Skills Gained

Checkmark

Create and execute dynamic Perl scripts for various input sources.

Checkmark

Utilize arrays and data structures effectively in Perl programming.

Checkmark

Design formatted reports and apply regular expressions proficiently.

Checkmark

Explore and leverage the functionalities of the standard Perl library.

Format

  • Instructor-led
  • 4 days with lectures and hands-on labs.

Audience

  • Web Developers
  • Automation Engineers
  • IT Professionals
  • System Administrators

Description

Perl Programming Essentials is an Introductory-level hands-on course that that guides the students from the basics of writing and running Perl scripts to using more advanced features such as file operations, report writing, the use of regular expressions, working with binary data files, and using the extensive functionality of the standard Perl library. Students will immediately be able to use Perl to complete tasks in the real world.

Calendar icon

Upcoming Course Dates

No upcoming dates. Please check back later.

Course Outline

Download PDF

Session: An overview of Perl

  1. What is Perl?

  2. Perl is compiled and interpreted

  3. Perl Advantages and Disadvantages

  4. Downloading and Installing Perl

  5. Which version of Perl

  6. Getting Help

Session: Creating and running Perl programs

  1. Structure of a Perl program

  2. Running a Perl script

  3. Checking syntax and warnings

  4. Execution of scripts under Unix and Windows

Session: Basic Data and I/O

  1. Numeric and Text literals

  2. Math operators and expressions

  3. Scalar variables

  4. Default values

  5. Writing to standard output

  6. Command line arguments

  7. Reading from the standard input

Session: Logic and Loops

  1. About flow control

  2. The if statement and Boolean values

  3. Using unless and elsif

  4. Statement modifiers

  5. warn() and die()

  6. The conditional construct

  7. Using while loop and its variants

  8. Using the for loop

  9. Exiting from loops

Session: Lists and Arrays

  1. The list data type

  2. Accessing array elements

  3. Creating arrays

  4. List interpolation

  5. Arrays and memory

  6. Counting elements

  7. Iterating through an array

  8. List evaluation

  9. Slices and ranges

Session: Reading and writing text files

  1. File I/O Overview

  2. Opening a file

  3. Reading text files

  4. Writing to a text file

  5. Arrays and file I/O

  6. Using the <> operator

Session: List functions

  1. Growing and shrinking arrays

  2. The split() function

  3. Splitting on whitespace

  4. Assigning to literal lists

  5. The join() function

  6. The sort() function

  7. Alternate sort keys

  8. Reversing an array

Session: Formatting output

  1. Using sprintf() and printf()

  2. Report formatting overview

  3. Defining report formats

  4. The write() function

  5. Advanced filehandle magic

Session: Hashes

  1. Hash overview

  2. Creating hashes

  3. Hash attributes

  4. Traversing a hash

  5. Testing for existence of elements

  6. Deleting hash elements

Session: References

  1. What is a reference?

  2. The two ways to create references

  3. References to existing data

  4. References to anonymous data

  5. Dereferencing scalar, array, and hash references

  6. Dereferencing elements of arrays and hashes

  7. Multidimensional arrays and other data structures

Session: Text and Regular Expressions

  1. String length

  2. The substr() function

  3. The index() and rindex() functions

  4. String replication

  5. Pattern matching and substitution

  6. Regular expressions

Session: Raw file and data access

  1. Opening and closing raw (binary) files

  2. Reading raw data

  3. Using seek() and tell()

  4. Writing raw data

  5. Raw data manipulation with pack() and unpack()

Session: Subroutines and variable scope

  1. Understanding packages

  2. Package and Lexical variables

  3. Localizing builtin variables

  4. Declaring and calling subroutines

  5. Calling subroutines

  6. Passing parameters and returning values

Session: Working with the operating system

  1. Determining current OS

  2. Environment variables

  3. Running external programs

  4. User identification

  5. Trapping signals

  6. File test operators

  7. Working with files

  8. Time of day

Session: Shortcuts and defaults

  1. Understanding $_

  2. shift() with no array specified

  3. Text file processing

  4. Using grep() and Using map()

  5. Command-line options for file processing

Session: Data wrangling

  1. Quoting in Perl

  2. Evaluating arrays

  3. Understanding qw( )

  4. Getting more out of the <> operator

  5. Read ranges of lines

  6. Using m//g in scalar context

  7. The /o modifier

  8. Working with embedded newlines

  9. Making REs more readable

  10. Perl data conversion

Session: Using the Perl Library

  1. The Perl library

  2. Old-style library files

  3. Perl modules

  4. Modules bundled with Perl

  5. A selection of modules

  6. Getting modules from ActiveState

  7. Getting modules from CPAN

  8. Using Getopt::Long

Session: Some Useful Tools

  1. Sending and receiving files with Net::FTP

  2. Using File::Find to search for files and directories

  3. Grabbing a Web page

  4. Some good places to find scripts

  5. Perl man pages for more information

  6. Zipping and unzipping files

Your Team has Unique Training Needs.

Your team deserves training as unique as they are.

Let us tailor the course to your needs at no extra cost.