Linux Magazine: An Object Lesson in Perl | Linux Today

Linux Magazine: An Object Lesson in Perl

Written By
Web Webster
Web Webster
Jul 4, 2000

“In the past three columns, I looked at using “references” in
Perl. References are an important part of capturing and reflecting
the structure of real-world data — for example, a table of
employees, each of whom has various attributes, can be represented
as an array of hashrefs, pointing at attribute hashes for each
employee.”

“Now let’s turn to capturing and reflecting real-world
processes, in the form of “objects.” Objects provide
encapsulation (to control access to data), abstract data types (to
let the data more closely model the real world), and inheritance
(to reuse operations that are similar but have some
variation).”

“The Perl distribution includes perlobj, a basic reference in
using objects, and perltoot, which introduces readers to the
peculiarities of Perl’s object system in a tutorial way. However, I
found that both of these documentation sections tend to be opaque
to those of us with less experience with objects. And that seems to
be the majority of users coming from a system-administration or CGI
Web-development background (Perl’s core audience).”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.