Preferred method of contact:

Perl 5 Programming Introduction



Course Number



4 Days
Request Team Training

PDF Add to WishList

This training provides programmers who have experience in a procedural or object-oriented language, such as Visual Basic, C, C++, Java, or a UNIX shell, with an introduction to Perl — a powerful cross-platform, object-oriented scripting language. In this course, you learn to use Perl for developing complete applications, applying built-in functions, and making use of external modules.

You Will Learn How To

  • Create effective, reusable Perl scripts
  • Parse and manipulate text with Perl regular expressions
  • Extract and arrange information from multiple files
  • Solve complex tasks with ease using Perl’s many small operators and functions

Important Course Information

  • Requirements

    • Programming experience with either a procedural or object-oriented language such as Visual Basic, C, C++, Java, or a UNIX shell
    • No previous familiarity with Perl is required

Course Outline

  • Introduction to Perl
  • Perl strengths: flexible, fast, rich, easy-to-use operator set
  • Reusable tool building for system admin, text manipulation and the Internet
  • Networking, text filtering, web application programming
  • Perl Syntax Fundamentals

Running Perl programs

  • Invoking UNIX/Linux scripts with #! syntax
  • Starting Perl scripts under Windows via command line

Variable types and contexts

  • Scalars vs. lists vs. hashes
  • Strings and interpolated strings
  • Making sense of special variables
  • Working in the right context

Compound data structures

  • Creating references to anonymous data
  • Building multidimensional arrays
  • Working with multidimensional hashes

Managing files and user input

  • Handling standard I/O streams
  • Parsing command-line arguments
  • Reading and writing data files
  • Pattern Matching and Operators

Perl regular expressions

  • Extracting important text information
  • Building on UNIX regular expressions
  • Altering data with substitutions
  • Performing global and case-insensitive matches

Perl's small operator groups

  • Manipulating arithmetic expressions
  • Replicating and growing strings
  • Saving time with assignment operators
  • Making decisions with logical operators
  • Establishing and using ranges
  • Looping, Decisions and Flow Control

Perl support for conventional flow control constructs

  • Making decisions with if/else/elsif
  • Creating loops with do, while, until, for and foreach

Perl-specific constructs

  • if and unless as statement modifiers
  • Constructing switch statements
  • Subroutines

Writing subroutines

  • Defining and calling a subroutine
  • Passing and receiving parameters
  • Returning values to the caller

Making data work for you

  • Localising variables: my and local
  • Accessing global variables
  • Built-in and Add-on Functions

Common data manipulation requirements

  • String functions for text manipulation
  • Processing arrays with list functions
  • Arranging information with sort

I/O and tool building

  • Manipulating file system entries
  • Reading binary file
  • Dissecting and creating records with split and join
  • Formatting tabular output
  • Perl and Object Orientation

How Perl implements object orientation

  • An introduction to OO in Perl
  • Methods, classes and constructors
  • Surveying and obtaining third-party packages from CPAN

Accessing OO packages

  • Incorporating modules with use
  • Defining a schema to employ OO modules
  • Calling methods with the -> syntax
  • Passing initialisation parameters
Show complete outline
Show Less

Exclusive Private Team Training Course

Enhance your team's effectiveness and boost productivity with this course, delivered privately to your organization or to any preferred location, including options for hybrid or all-virtual delivery via AnyWare.

This training course could be customized, and combined with other courses, to meet the specific needs of your team's training.

Preferred method of contact:

Attendee Benefits

After-Course Instructor Coaching
When you return to work, you are entitled to schedule a free coaching session with your instructor for help and guidance as you apply your new skills.

After-Course Computing Sandbox
You'll be given remote access to a preconfigured virtual machine for you to redo your hands-on exercises, develop/test new code, and experiment with the same software used in your course.

Free Course Exam
You can take your Learning Tree course exam on the last day of your course or online any time after class.


“The instructor of the Perl programming course at Learning Tree had the ability to keep the participants focused on the course, and the course was very well structured”.

- S. Carnelli, Customer Support
Ericsson AB

Chat Now

Please Choose a Language

Canada - English

Canada - Français