Object Oriented Perl
Backround
- Object Orientation is a programming and design paradigm that
gives a nice clean way to combine the attributes and the actions of an
"object" into a single place within the code. Note that this point is
a gross oversimplification, but it is at least an accurate gross
oversimplification.
- The CGI perl packages we will be using for our CGI development
have both an object oriented and a standard procedural interface
available. The OO interface is superior, and it is the one we will
use, but be aware if you are doing maintenance, you may run across the
procedural interface.
- Before we jump straight into the CGI OO interface, lets spend first develop a few OO modules of our own.
- This will better help us understand what things we learn are
standard Perl OO, and what things we learn are supplied by the CGI
libraries.
- Much of the overview supplied on the following pages will be
pulled from the excellent "perltoot" object oriented tutorial. Type
man perltoot on any self respecting Unix system for the
full tutorial.
Back to Syllabus
Previous: Sockets
Next: Defining an object.