Perl Programming

Perl is a popular language in the scripting community. You can use Perl to supercharge your scripts, to perform tasks such as complex string manipulation, regular expression matching, file I/O, and so on. You can also use Perl to implement Web applications and to access data in relational databases.

This course covers all these techniques, and also shows how to write object-orientated Perl code to help structure larger solutions.

Duration

4 days

 

Prerequisites

  • Familiarity with another scripting language such as bash or ksh, or experience with a high level language such as C or Fortran
  • General computer experience, e.g. as a System Administrator on Linux, would be an advantage

What you'll learn

  • Understanding Perl syntax and data types
  • Using Perl collections
  • Working with subroutines
  • Using strings and regular expressions
  • Manipulating files and XML/JSON data
  • Developing Web applications using CGI
  • Accessing databases using DBI

Course details

Getting Started with Perl

  • Overview of Perl
  • The role of Perl in scripting
  • Getting ready to develop

Perl Language Fundamentals

  • Overview of core Perl syntax rules
  • Scalar data types and variables
  • Operators
  • Flow control

Perl Collections

  • Overview of collections in Perl
  • Arrays
  • Lists
  • Hashes

Working with Subroutines

  • The benefit of subroutines
  • Writing and calling subroutines
  • Passing parameters

Strings and Regular Expressions

  • Overview of strings in Perl
  • Basic string manipulation
  • Introduction to regular expressions
  • Using regular expressions in Perl

Working with Data

  • File I/O operations
  • Working with XML data
  • Working with JSON data

Object-Oriented Perl

  • Defining classes
  • Creating objects
  • Defining modules
  • Using modules

Web Development

  • Web development key concepts
  • Understanding HTTP requests and responses
  • Using CGI

Accessing Databases

  • Database development key concepts
  • The role of Perl in data access
  • Using DBI