Blessed References

Learn how to associate the name of the class with a reference.

Perl object system

Perl’s core object system is deliberately minimal. It has only three rules:

  • A class is a package.

  • A method is a function.

  • A (blessed) reference is an object.

We can build anything else out of these three rules. This minimalism can be impractical for larger projects, in particular, the possibilities for greater abstraction through metaprogrammingWriting programs to write programs for you—metaprogramming or code generation—allows you ...