This Perl course is designed for those people who have attended an Introduction to Perl course, or have had some experience with Perl, and would like to do more with it. You will enhance your command set and be capable of creating some extremely useful applications, not just local to your machine, but across the network, or with databases.

If project work is a must then creating modules will help you maintain projects efficiently and allow multiple people to work on larger application

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
  • Create simple CGI pages

WHO SHOULD ATTEND?

This course is intended for those of you who have had an introduction to Perl, have created some simple scripts on your own in Perl and have an idea of what they do, or are a competent programmer in another structured language such as C, Basic, Unix Shell scripting, etc.

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

An Introduction to Perl course that has covered language basics, variables, expressions, functions, flow control and file I/O. Or you have created your own scripts and understand what they do and why, and you are a competent programmer in another structured language, e.g. C, Basic, etc.

DURATION: 4 DAYS

PRICE: Call for latest

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

COURSE CONTENT

Variables and Expressions

A revision section covering Types, Arrays and Hashes, and some uses of.

Working with Arrays and Hashes

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

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

Modules

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

Advanced Array Functions

Mapping, searching, splicing.

Regular Expressions

Character mapping, searching and replacing text.

References

Creating and using, complex data structures.

Handling Errors and Exceptions

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

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.

Introduction to CGI Programming

What it is, How it works, test scripts, form handling, using cookies and file upload.

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.