Changes for version 0.053003 - 2026-01-31

  • A lot of the array handlers which accepted a coderef which operated on $_ would also pass $_ to the coderef in @_. There were no test cases for this and it was undocumented (apart from for_each). This feature has been removed (apart from for_each).
  • Added: The new for_each2 array handler only makes the array element available as $_, not in @_.

Documentation

misc advanced documentation
comparing Sub::HandlesVia against similar modules
using Sub::HandlesVia with Class::Tiny
using Sub::HandlesVia with the class keyword
using Sub::HandlesVia with generic Perl classes
using Sub::HandlesVia with Mite
using Sub::HandlesVia with Moo
using Sub::HandlesVia with Moose
using Sub::HandlesVia with Mouse
using Sub::HandlesVia with Object::Pad

Modules

alternative handles_via implementation
looks at a Handler and generates a string of Perl code for it
declare delegations at compile-time
template for a method that can be delegated to
library of array-related methods
library of object-related methods
library of bool-related methods
library of code-related methods
library of counter-related methods
library of enum-related methods
library of hash-related methods
library of number-related methods
library of scalar-related methods
library of string-related methods
integration with OO frameworks for Sub::HandlesVia

Provides

in lib/Sub/HandlesVia/Handler.pm
in lib/Sub/HandlesVia/Handler.pm
in lib/Sub/HandlesVia/HandlerLibrary.pm
in lib/Sub/HandlesVia/Mite.pm
in lib/Sub/HandlesVia/Toolkit/Mite.pm
in lib/Sub/HandlesVia/Toolkit/Moo.pm
in lib/Sub/HandlesVia/Toolkit/Moose.pm
in lib/Sub/HandlesVia/Toolkit/Moose.pm
in lib/Sub/HandlesVia/Toolkit/Moose.pm
in lib/Sub/HandlesVia/Toolkit/Mouse.pm
in lib/Sub/HandlesVia/Toolkit/Mouse.pm
in lib/Sub/HandlesVia/Toolkit/Mouse.pm
in lib/Sub/HandlesVia/Toolkit/ObjectPad.pm
in lib/Sub/HandlesVia/Toolkit/Plain.pm