Advanced Perl

Accelerated Technical Training for Programmers and Webmasters

Format

Audience

This course is for Perl programmers who want to master the language's advanced features.

Overview

Ready for the next step? If you've been programming in Perl for a while, you're ready to start using Perl's numerous advanced techniques -- the interactive debugger, references, DBM files, modules, and more. Join the ranks of the Perl gurus!

The popularity of the Perl programming language is growing dramatically. It has proven itself an effective tool for solving a variety of programming problems including text processing, web site construction, data management, networked applications, etc. Its advanced features include object-oriented classes and methods, indexed (DBM) files, huge collections of reusable code modules available for free (CPAN), and more. Using these features improves your productivity as a Perl programmer and enables you to build programs that are powerful yet concise.

Objectives

You will practice and learn to:
  • Use references to create and query complex data structures.
  • Construct and use packages, namespaces, and scoped variables.
  • Build new applications by reusing methods and functions from Perl modules.
  • Write object-oriented Perl.
  • Use Tk to build graphical user interfaces.
  • Implement client-server networking with sockets.
  • Simplify data storage and access with DBM files.
  • Profile program performance with Benchmark.
  • Method

    The course consists of six chapters, each presenting one of Perl's advanced mechanisms. Each provides sample programs and discussion of the principles applied. Finally, each includes a hands-on exercise in which the student demonstrates grasp of the mechanism and principles.

    Programming is best learned by example. This presentation is task-oriented rather than the more common but less effective feature-oriented approach.

    Prerequisites

    Check the boxes for the prerequisites you satisfy.
    • Perl programming experience:
      Basic concepts: variables, control of flow (loops, branches), input/output, functions (subroutines)
      Compound data structures: arrays, lists, hashes
      Regular expressions
    • Use of a text editor:
      Any editor available in the classroom is ok
    • Familiarity with the programming platform:
      Writing and running scripts
      Invoking commands at the command-line prompt
      Command-line options and arguments
      Navigating the filesystem
    • Basic notions of I/O in Unix or NT:
      Standard in/out/error
      Creating and managing files
    If you have checked eight or more, you're well-equipped to take this class!

    Contents

    Chapter 1: Perl's Debugger

    Chapter 2: References and Data Structures

    Chapter 3: Using Modules

    Chapter 4: Object-Oriented Perl: A Tk Application

    Chapter 5: Client-Server in Perl

    Chapter 6: Improving Performance with Tie and DBM

    Conclusion

    Classroom Setup

    Delivery of this course requires a classroom equipped with:
    • A data projector for the instructor's computer screen
    • A PC or workstation for each student
    • A PC or workstation for the instructor
    • Connection to the internet
    • Workbooks
    • Perl interpreters and other software on the computers -- details

    Site

    The course can be taught in your classroom, anywhere in the world. Travel outside the San Francisco Bay Area requires reimbursement of the instructor's travel expense.

    Copyright © 2020

    Dan Keller Technical Services
    2248 International Blvd., Oakland
    California, USA 94606
    tel: 415 / 861-4500