Contents
Up
Prev
Next
Perl for Newbies, Lecture No. 3 : Modules and Objects
Perl for Newbies, Lecture No. 3 : Modules and Objects
Contents
1. Introduction
1.1. References to Functions
1.2. Modules and Packages
1.3. Objects
1.4. A Note about Source Files
2. References to Functions
2.1. Taking the Reference of a Function
2.2. Calling a Function by its Reference
2.3. Dynamic References to Functions
2.3.1. Behaviour of Functions inside Functions
2.3.2. Demo: A Dispatch Function
2.3.3. Lambda Calculus
3. Perl Modules
3.1. Declaring a Package
3.1.1. Where to find a module
3.2. Loading Modules and Importing their Functions
3.2.1. Accessing Functions from a Different Module
3.2.2. Exporting and Importing Functions
3.2.3. Using Variables from a Different Namespace
3.3. BEGIN and END
3.4. The "main" Namespace
3.5. Difference between Namespaces and Modules
4. Objects in Perl
4.1. How it Works behind the Scenes
4.2. Object Use
4.2.1. Calling the Methods of an Object
4.3. Making Your Own Objects
4.3.1. The Constructor
4.3.2. Defining Methods
4.3.3. Object Inheritance
4.3.3.1. Calling Overriden Methods of Base Classes
4.3.4. The Destructor
4.4. Object Utility Functions - isa() and can()
5. Finale
5.1. Links and References
Licence
This work is licensed under the
Public Domain
.
Contents
Up
Prev
Next
Written by
Shlomi Fish
Made with Quad-Pres