Perl FAQ 2.18: Where can I learn about object-oriented Perl programming?

Perl FAQ 2.18

Where can I learn about object-oriented Perl programming?

The perlobj(1) man page is a good place to start, and then you can check out the excellent perlbot(1) man page written by the dean of perl o-o himself, Dean Roehrich. Areas covered include the following:

Idx  Subsections in perlobj.1          Lines
 1   NAME                                  2
 2   DESCRIPTION                          16
 3   An Object is Simply a Reference      60
 4   A Class is Simply a Package          31
 5   A Method is Simply a Subroutine      34
 6   Method Invocation                    75
 7   Destructors                          14
 8   Summary                               7

Idx  Subsections in perlbot.1          Lines
 1   NAME                                  2
 2   INTRODUCTION                          9
 3   Instance Variables                   43
 4   Scalar Instance Variables            21
 5   Instance Variable Inheritance        35
 6   Object Relationships                 33
 7   Overriding Superclass Methods        49
 8   Using Relationship with Sdbm         45
 9   Thinking of Code Reuse              111

 

The section on instance variables should prove very helpful to those wondering how to get data inheritance in perl.


Other resources at this site: