Perl Programming
Course Description
This course starts by introducing you to the basics of programming in the Perl environment. The full extent of what can be done with Perl is explored. 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.
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.
If project work is a must then creating modules will help you maintain projects efficiently and allow multiple people to work on larger applications.
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.
If project work is a must then creating modules will help you maintain projects efficiently and allow multiple people to work on larger applications.
Course Duration
5 days
Course Objectives
On completion of this course delegates should be able to
• Understand better the workings of the Perl language
• Use feature rich commands
• 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
• Understand better the workings of the Perl language
• Use feature rich commands
• 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
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
How to manipulate them together and useful things that can be done with them individually.
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
Slicing, Sorting, 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.
Error Handling and Exceptions
Detection, returning errors, eval, %SIG and making your programs more resilient.
Object Oriented Programming Part 1
General OO Concepts, How Perl uses references for OO, Constructors, Destructors,
Inheritance.
Object Oriented Programming Part 2
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, Communication with Windows and Unix Databases.
Why use Perl?, History, Environment, Help, simple script and script structure.
Variables
Types, definitions, Arrays and single values, interpolation.
Working with Arrays and Hashes
How to manipulate them together and useful things that can be done with them individually.
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
Slicing, Sorting, 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.
Error Handling and Exceptions
Detection, returning errors, eval, %SIG and making your programs more resilient.
Object Oriented Programming Part 1
General OO Concepts, How Perl uses references for OO, Constructors, Destructors,
Inheritance.
Object Oriented Programming Part 2
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, Communication with Windows and Unix Databases.
Who should attend?
Experienced system administrators, Programmers and Analysts intending to implement Perl programs, e.g. HTML generation, application control, and report generation, data manipulation, etc.
Pre-requisites
This course is intended for competent programmers in another structured language such as C, Basic, Unix Shell scripting, etc. This is a comprehensive course that moves quickly through the key topics required to gain a full understanding of the Perl Programming environment.