Perl Object Oriented Meta-Tutorial

This is a meta-tutorial, in that it's meant not to teach the reader how to use objects in Perl, but where to find information about using objects in Perl. This may sound irrelevant or useless, but with the amount of documentation that ships with the standard Perl, a meta-tutorial might be useful--or even necessary.

Think of this as an extended index to various sources of documentation on OO Perl.


Before you learn about objects in Perl, you need to be familiar with certain concepts: references, as discussed in perlref and perlreftut (unfortunately, I can't find a working URL for the latter), and modules and packages, as discussed in perlmod. This isn't, of course, necessary if you're just trying to *use* objects (as opposed to writing them, that is).

But it may be helpful all the same.


If you're just beginning your OO education by learning OO Perl, you need documentation that presumes no prior knowledge of object-oriented principles. As such, these sources are a good start for any OO beginner:

A Modicum of Experience

So you're no longer (or never were?) a beginner to object- oriented programming. Now you need to learn how to do it in Perl. These are a good start.


All of the Above

The Others

There are a good number of other resources on OO programming in Perl; they're not listed above because they're not solely focused on OO.
2005-09-22 jdporter fixed some broken links to old documentation.

Replies are listed 'Best First'.
Perl Object Tutorials - Perl Design Patterns - Re: Perl Object Oriented Meta-Tutorial
by scrottie (Scribe) on Aug 14, 2003 at 18:00 UTC

    Perl Design Patterns - beyond object syntax, into tricks, refactoring, object oriented design/analysis, pitfalls, and object theory. If I may say so myself, the first text on Perl objects of the callibar you'd find on a college course at a respected University (and apparently a few professors agree, as gradulate level course websites love to link there).

    -scott (not feeling very modest today)
Re: Perl Object Oriented Meta-Tutorial
by ian (Beadle) on Dec 07, 2007 at 19:47 UTC
    Also, Higher Order Perl has a section about caching in object methods. I also found someone demonstrating an example of a static cache.

    It also appears that the same person who'd written about static object caches also wrote a pragma called reform that adds helpful syntax for Perl 5 OOP.

    -- Ian Tegebo
Re: Perl Object Oriented Meta-Tutorial
by Krambambuli (Curate) on May 10, 2007 at 13:40 UTC
    There is another book from Damian Conway, Perl Best Practices that should be mentioned, I think.
    It contains a few chapter specifically targetted to OOP.
Re: Perl Object Oriented Meta-Tutorial
by Anonymous Monk on Apr 01, 2002 at 19:28 UTC
    I liked Tom's Object-Oriented Tutorial for Perl. First time I found a real nice tutorial about oo in perl
Re: Perl Object Oriented Meta-Tutorial
by edwardt_tril (Sexton) on Mar 17, 2006 at 17:46 UTC
    the missing url for perlreftut is:
Re: Perl Object Oriented Meta-Tutorial
by naikonta (Curate) on May 10, 2007 at 13:18 UTC
Re: Perl Object Oriented Meta-Tutorial
by programmer.perl (Beadle) on Jan 26, 2014 at 14:54 UTC