An introduction to object oriented Perl

Terminology

Object

Generally:

  • A container for data.
  • An object's data items are called its attributes.
  • Also an access mechanism for the data it contains.

In Perl:

  • A reference (often a hashref) that has been told which class it belongs to, using bless.