Sub::MultiMethod 1.003 is a pure-Perl multimethod dispatcher that depends on
Exporter::Tiny, Role::Hooks, and Type::Tiny. This document tracks the
remaining work needed for a clean:
./jcpan -t Sub::MultiMethodBranch: fix/sub-multimethod-jcpan
Module version: Sub::MultiMethod 1.003
Status: Blocked on builtin::export_lexically support in a separate PR
Last checked: 2026-05-26
The first failing dependency is Exporter::Tiny 1.006003:
Undefined subroutine &builtin::export_lexically called at .../Exporter/Tiny.pm line 138.
t/14lexical.t ............ Dubious, test returned 255
Result: FAIL
Because Exporter::Tiny is not installed after that failure, Type::Tiny cannot
compile, and Sub::MultiMethod later fails with missing dependency errors such as
Eval/TypeTiny.pm, Types/Standard.pm, and Type/Library.pm.
To check for independent Sub::MultiMethod failures, the blocked dependencies
were installed locally without running their tests:
timeout 600 ./jcpan -Ti Exporter::Tiny Type::Tiny
timeout 900 ./jcpan -t Sub::MultiMethodWith Exporter::Tiny and Type::Tiny present, Role::Hooks passes its test
suite and Sub::MultiMethod itself passes:
Role::Hooks: All tests successful. Files=13, Tests=12
Sub::MultiMethod: All tests successful. Files=23, Tests=135
- Merge the separate
builtin::export_lexicallyimplementation. - Re-test from a clean local CPAN state:
timeout 900 ./jcpan -t Sub::MultiMethod > /tmp/sub_multimethod_after_builtin.log 2>&1
- If
Exporter::TinyandType::Tinyinstall cleanly, no additionalSub::MultiMethodfix is expected based on the exploratory run.
dev/modules/type_tiny.mddev/modules/pure-perl-exporter.md