Design Patterns in Modern Perl

Practical Patterns for Everyday Perl

Design Patterns in Modern Perl

By Mohammad Sajid Anwar

Publication date: 29 Nov 2025

Gang of Four Cleaner, maintainable code Many OO frameworks

Design Patterns in Modern Perl shows how classic object-oriented patterns look in today’s Perl. Using core Perl, Moo and Object::Pad, Mohammad Sajid Anwar builds real, tested examples, helping you choose patterns sensibly and write cleaner, more maintainable code.

  • Dedication
  • Acknowledgements
  • Foreword
  • Introduction
    • History
    • What is a Design Pattern?
    • Why are Design Patterns useful?
    • What problems do Design Patterns solve?
    • The Gang of Four
    • Who should read this?
  • Getting Started
    • Choice of OOP Frameworks
    • Environment Setup
    • Introduction to Class::Mite
    • Test Driven Development
  • Creational Patterns
    • Chapter 1: Abstract Factory
    • Chapter 2: Builder
    • Chapter 3: Factory Method
    • Chapter 4: Prototype
    • Chapter 5: Singleton
  • Structural Patterns
    • Chapter 1: Adapter
    • Chapter 2: Bridge
    • Chapter 3: Composite
    • Chapter 4: Filter
    • Chapter 5: Decorator
    • Chapter 6: Facade
    • Chapter 7: Proxy
  • Behavioural Patterns
    • Chapter 1: Chain of Responsibility
    • Chapter 2: Command
    • Chapter 3: Interpreter
    • Chapter 4: Iterator
    • Chapter 5: Mediator
    • Chapter 6: Memento
    • Chapter 7: Observer
    • Chapter 8: State
    • Chapter 9: Strategy
    • Chapter 10: Template
    • Chapter 11: Visitor
  • About the Book
    • About Perl School
    • About Mohammad Sajid Anwar

Buy

Recently-published books

Design Patterns in Modern Perl

Design Patterns in Modern Perl

Design Patterns in Modern Perl shows how classic object-oriented patterns look in today’s Perl. Using core Perl, Moo and Object::Pad, Mohamm…

Perl New Features

Perl New Features

In 2010, Joshua McAdams and brian d foy updated for v5.10 Joseph Hall's seminal book Effective Perl Programming. At the same time, they…

The Best of Perl Hacks

The Best of Perl Hacks

Dave Cross has been writing his Perl Hacks blog for over ten years. This book collects a selection of the best articles from the blog over that time.

Cucumber & Perl

Cucumber & Perl

Behaviour-Driven Development is a technique for involving non-technical people in software development. Cucumber is a multi-language tool for …