The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Changes for version 0.015

  • Altered the 'chainable' method. Only return $self was getting a bit annoying when I actually wanted to bless something like $self-{_this}. Now you can add an extra parameter called 'bless'.
  • chainable 'method' => ( class => 'BlessTo::ThisClass', bless => '_this' ); The above will return something similar to "return bless $self->{_this_}, 'BlessTo::ThisCLass'" If you ommit the 'bless' it will use just $self.
  • I discovered a bug in 'augment' that was only allowing one augmentation. This has been fixed.

Documentation

Recipes for Sub::Mage

Modules

Override, restore subroutines and add hook modifiers, with much more sugary goodness.