RTD Training & Development

Advanced Perl Programming

Call us on +44 (0)1225 66 72 72 or send us a message

Advanced Perl Programming

4 days hands-on £1,940+VAT

This course can be delivered over the web

Next scheduled date:
Monday October 1st, 2018 Enrol Now!

Can't wait that long? It may be possible to deliver this course at an earlier date. Contact us if you're interested
Covers the more powerful features of Perl, e.g. object orientation, multiprocessing, database access, CGI scripting

Outline

Review

  • Importing modules
  • Writing modules
  • Packages
  • Passing arguments to subroutines
  • Using references
  • Subroutine references

Regular Expressions

  • Multi-line matches
  • Minimal matches
  • Regular expression extensions

Object Orientation

  • Creating classes
  • Constructors and destructors
  • Virtual constructors
  • Copying references and values
  • Operator overloading
  • Anonymous subroutines and closures
  • Inheritance

Database Access

  • The DBI/DBD architecture
  • DBD drivers
  • Connection and disconnection
  • Executing SQL statements
  • Processing statement results
  • Accessing metadata
  • Transactional processing

Web Programming

  • HTTP overview
  • The CGI module
  • Form processing
  • State management
  • Image handling
  • Using cookies
  • Encryption modules

Networking

  • TCP/IP overview
  • Using sockets
  • Writing clients and servers

Multi-processing

  • Process creation and destruction
  • Thread creation and destruction
  • Synchronisation

Interfacing to Other Languages

  • Calling C routines
  • Accessing Perl from C
  • Graphical interfaces with Perl/Tk

Overview

Perl is a powerful language for general-pupose text processing. Nevertheless, the major use for Perl has been CGI scripting. It is estimated that over 90% of CGI scripts are written in Perl.

Recent versions of Perl have included object-oriented features. Many modules are now object-oriented, including the CGI module for web page processing and the DBI module for data access.

This course provides a firm grounding in Perl's object-orientation and covers advanced use of regular expressions, before concentrating on web processing and data access.

Objectives

On successful completion of this course, participants will be able to:

  • Use the object-oriented features of Perl
  • Use advanced regular expression features
  • Access databases using DBI/DBD modules
  • Perform CGI processing using the CGI module
  • Write networked applications in Perl
  • Write multi-processing applications in Perl

Audience

This course is for Perl programmers who wish to use the object-oriented features of Perl to perform CGI processing, database access, networking and multi-processing.

Prerequisites

Participants are expected to be familiar Perl up to the level covered in the Introduction to Perl Programming course and to have some knowledge of HTML and SQL.