Course Description
This 3-day Perl Object-Oriented Programming training course addresses the Object-Oriented features of the Perl programming language and provides students with the knowledge to create Object-Oriented Perl scripts.
Pre-requisites
Programming experience in a structured language, such as C, C++, Java, COBOL, or Visual Basic, is required as well as an in-depth knowledge of the Perl language via Perl Programming Intermediate or equivalent experience.
Who is this Course for ?
Perl programmers or developers wanting to fully understand Perl’s OO aspects.
Further Training
After some further on-the-job experience in a Perl development environment, we recommend students consider attendance at our Perl Programming Advanced training course to gain higher-level skills in the usage of the Perl programming language.
Course content
Perl Essentials Review
References
Advanced Data Types
Typeglobs
Packages
Modules
Additional Resources
OO Primer
Objects
Methods
Classes
Additional OO Terminology
Additional Resources
OO In Perl Essentials
Class Creation
Method Creation
Object Creation
Calling Methods
Constructors
Accessors
Mutators
Affordances
Class Data
Class Modules
Using AUTOLOAD
Destructors
Additional Resources
Using Bless on Arrays and Scalars
Blessing Arrays
Pseudo-Hashes
Blessing Scalars
Additional Resources
Using Bless on REs, Subroutines and Typeglobs
Blessing Regular Expressions
Blessing Subroutines
Blessing Typeglobs
Additional Resources
Inheritance
Determining a Method’s Location
The @ISA Array Works
Inheritance in Other Languages
Perl “Built-In” Methods
Handling DESTROY Methods with Inheritance
The SUPER Class
Abstract Methods
Polymorphism
Additional Resources
Automating Class Creation
Using Class::Struct to Crate Classes
Using Arrays Instead of Hashes
Attribute Types
Other Tools to Create Classes
Additional Resources
Ties
Making a Tied Scalar
Making a Tied Array
Making a Tied Hash
Making a Tied Filehandle
Ties and Inheritance
Additional Resources
Installing CPAN Modules
Using overload.pm
How Your Overload Subroutines Will Be Called
Magic Autogeneration
Fallback
Additional Resources
Encapsulation
Private Identifiers
Using Closures to Enforce Encapsulation
Other Methods of Encapsulation
Additional Resources