This Perl course is designed for those people who have had little or no experience of Perl and would like to cover Perl from the beginning upto and including some advanced topics. We will take you through the basics of writing Perl correctly and understanding it, to working with references and creating Object Oriented code, enhancing your understanding of many Perl modules already in existance.

ON COMPLETION

  • Have a greater knowledge of the Perl language
  • Feature rich commands added to your vocabulary
  • Create modular and maintainable code
  • Create modules, and work comfortably within a project team
  • Work with complex data structures and references
  • Handle errors and exceptions
  • Program network application with FTP, HTTP and Email
  • Connect to Win32::ODBC and DBI databases
  • Understand Object Oriented Perl and write it

WHO SHOULD ATTEND?

This course is intended for those of you who wish to be introduced to Perl, but at the same time wish to rapidly enhance your understanding to an advanced level. An understanding of a previous programming language or scripting language (e.g. Unix shell scripts or VBScript) would be an advantage. If you have fumbled your way through Perl scripts without knowing what they do, this course will suit you.

COURSE WORK

The course work is based around a 40/60 approach to lecture and hands on giving the attendee the chance to really work with the system and see its potential. Where possible the practicals will use real world examples and useful starting code that can be integrated into new or existing projects.

PRE-REQUISITS

A previous programming or scripting language. No knowledge of Perl is required.

DURATION: 5 DAYS

PRICE: Call for latest

1st Day: Start 9:30am - Finish 5:00pm
Subsequent Days: Start 9:00am - Finish 5:00pm

COURSE CONTENT

Language Basics

Why use Perl , History, Environment, Help, simple script and script structure.

Variables

Types, definitions, Arrays and single values, interpolation.

Working with Arrays and Hashes

Array to Hashes and vice versa, Hash and Array functions, Looping through hashes, defined or undefined, slicing and sorting.

Expressions and Operators

Numeric operators, precedence, string operators, conversion and more.

Functions

Built in functions of the Perl interpreter for working with numbers, strings and arrays.

Loops

Refresh of loops, and extras about the FOREACH loop, while loop, variable scope, exiting early, Unless and until and conditional operators

Advanced File I/O and File Handling

Opening and reading file refresh, working with loops and files, command line arguments, filesystem manipulation, globbing

Regular Expressions

Character mapping, searching and replacing text.

Advanced Array Functions

Mapping, searching, splicing.

Subroutines

Making readable code, better maintenance, reusable code.

Modules

Subroutine refresh, creating and using modules and how they are used in projects.

References

Creating and using, complex data structures.

Handling Errors and Exceptions

Detection, returning errors, eval, %SIG and making your programs more resilient.

Object Oriented Programming 1 & 2

General OO Concepts, How Perl uses references for OO, Constructors, Destructors, Inheritance, Classes, polymorphism, Method & Operator overload, reference counting.

Using the Network

File transfer with FTP module, HTTP communication, and Email.

Interfacing with Databases

Using Win32::ODBC and DBI, ability to communicate with Windows and Unix Databases.

Lots of examples and practical questions to give you a chance to try things out. Feel free to bring along your own ideas to try.