2 Day – Advanced Perl Programming

[wpfilebase tag=file id=61  tpl=pdf/]

This is a 2 day Perl Programming course for programmers with prior experience of using Perl and covers references, advanced use of regular expressions, modules and object oriented Perl. The focus is on best practices and techniques for advanced data manipulation using Perl.

Prerequisites

This course is designed for programmers who know basic Perl syntax including using scalar, array and hash data types as well as flow control statements, subroutines and regular expressions. The Introductory Perl Programming companion course is a suitable prerequisite to this course.

Learning Objectives

The course will help developers extend their understanding of programming using Perl, specifically how to:

  • Use references to build complex data structures
  • Apply subroutine prototypes
  • Use regular expression capture groups and advanced substitution
  • Add error handling to code blocks
  • Create and use Perl modules
  • Develop object oriented Perl libraries

Delivery

This course comprises a mix of theory, demonstrations and hands on exercises. Approximately 50% of the time is hands-on.

Day 1 – References & Modules

  • Recap of scalars, arrays and hashes
  • Flow control & subroutines
  • Reference concepts
  • Complex data structures
  • Map function
  • Perl Modules
  • Packages and namespaces
  • Conditional export
  • BEGIN and END blocks
  • Object Oriented Perl
  • Defining objects with bless
  • Object Methods
  • Using Inheritance

Day 2 – Subroutines & Regexp

  • Subroutine references
  • Argument prototypes
  • Advanced Regular Expressions
  • Capture groups
  • Non greedy matches
  • Advanced substitution
  • Eval statement and error handling
  • DBI module database access