O'Reilly logo

Perl by Example, Fourth Edition by Ellie Quigley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 14. Bless Those Things! (Object-Oriented Perl)

The OOP Paradigm

Packages and Modules Revisited

The big addition to Perl 5 was the ability to do object-oriented programming, called OOP for short. OOP is centered on the way a program is organized. Object-oriented languages, such as C++ and Java, bundle up data into a variable and call it an object. An object can be described as a noun in English: a person, place, or thing. A cat, a computer, and an employee are objects. Adjectives describe nouns. For example, the cat is sneaky, the computer is fast, the employee is called “John.” In OO languages, the adjectives that describe the object are called properties, also called attributes. Verbs that describe what the object can do or what can be ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required