The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 0.12

  • Moose::Cookbook
    • Recipe5 (subtypes & coercion) has been written
  • Moose
    • fixed "bad meta" error message to be more descriptive
    • fixed &unimport to not remove the &inner and &super keywords because we need to localize them.
    • fixed number of spelling/grammer issues, thanks Theory :)
    • **~~ experimental & undocumented feature ~~**
    • added the method and self keywords, they are basically just sugar, and they may not stay around.
  • Moose::Object
    • added &dump method to easily Data::Dumper an object
  • Moose::Meta::TypeConstraint
    • added the &is_a_type_of method to check both the current and the subtype of a method (similar to &isa with classes)
  • Moose::Meta::Role
    • this is now a subclass of Class::MOP::Module, and no longer creates the _role_meta ugliness of before.
      • fixed tests to reflect this change

Documentation

How to cook a Moose
The (always classic) Point example.
A simple BankAccount example
A lazy BinaryTree example
Subtypes, and modeling a simple Company class hierarchy
More subtypes, coercion in a Request class
The Moose::Role example

Modules

A complete modern object system for Perl 5
The Moose attribute metaclass
The Moose metaclass
The Moose Instance metaclass
The Moose Role metaclass
The Moose Type Coercion metaclass
The Moose Type Constraint metaclass
The base object for Moose
The Moose Role
Type constraint system for Moose

Provides

in lib/Moose/Meta/Class.pm
in lib/Moose/Meta/Role.pm
in lib/Moose/Meta/TypeConstraint.pm