Skip to Content
Perl by Example
book

Perl by Example

by Ellie Quigley
December 2014
Beginner
888 pages
25h 23m
English
Addison-Wesley Professional
Content preview from Perl by Example

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

14.1 The OOP Paradigm

By the end of this chapter, you will be able to read and write the following code:

use Cirle::Area;use base qw(Shape);$c1 = Circle::Area->new();$c2 = Circle::Area->new();$c1->setRadius(5);$c1->setArea();$c2->setRadius(12);$c2->setArea();print $c1->getArea();

14.1.1 What Are Objects?

Objects are things we deal with every day. Most programming languages, such as Java and C++, also deal with objects, and those languages are called OOP (Object-Oriented Programming) languages. OOP is a way of organizing a program to solve problems in terms of real-world objects. Early Perl (Perl 4) did not support OOP, but with the advent of Perl 5, the big addition was the ability to ...

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

Beginning Perl

Beginning Perl

Curtis Ovid Poe
Perl Hacks

Perl Hacks

Chromatic, Damian Conway, Curtis Ovid Poe, Curtis (Ovid) Poe
Mastering Perl

Mastering Perl

brian d foy
Learning Perl 6

Learning Perl 6

brian d foy

Publisher Resources

ISBN: 9780133593068Purchase book