December 2002
Intermediate to advanced
496 pages
9h 40m
English
There is no way to avoid it—we have to talk about object-oriented programming (OOP) using Perl. Object-oriented programming is not a big deal though; it is just a way to give an object (a thing) actions (behaviors, also known as methods). Let’s say we have an object named $car. We can drive the car by executing that object’s drive() method, using the nifty arrow notation: $car->drive(). Easy, eh? Well, of course it is not so easy, so we suggest that if you want an excellent discussion of all things OOP in Perl, see Objected-Oriented Perl [Conway 99].
Most of the time, when we do OOP in Perl, we will use objects that others have defined. In Chapter 7, when we learn how to do CGI programming ...
Read now
Unlock full access