Skip to Main Content
Perl by Example, Fourth Edition
book

Perl by Example, Fourth Edition

by Ellie Quigley
November 2007
Intermediate to advanced content levelIntermediate to advanced
1008 pages
20h 15m
English
Pearson
Content preview from Perl by Example, Fourth Edition

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Perl in a Nutshell, 2nd Edition

Perl in a Nutshell, 2nd Edition

Nathan Patwardhan, Ellen Siever, Stephen Spainhour
Programming Perl, 3rd Edition

Programming Perl, 3rd Edition

Larry Wall, Tom Christiansen, Jon Orwant
Learning Perl, 7th Edition

Learning Perl, 7th Edition

Randal L. Schwartz, brian d foy, Tom Phoenix
Minimal Perl

Minimal Perl

Tim Maher

Publisher Resources

ISBN: 9780132381826Purchase book