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

Search results for "dist:MooseX-Types-LoadableClass SROMANOV"

MooseX::Types::LoadableClass - ClassName type constraint with coercion to load the class. River stage two • 11 direct dependents • 73 total dependents

use Moose::Util::TypeConstraints; my $tc = subtype as ClassName; coerce $tc, from Str, via { Class::Load::load_class($_); $_ }; I've written those three lines of code quite a lot of times, in quite a lot of places. Now I don't have to....

ETHER/MooseX-Types-LoadableClass-0.015 - 16 Jun 2017 23:39:16 UTC
1 result (0.02 seconds)