perl-MooseX-Types-LoadableClass
ClassName type constraint with coercion to load the class
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.
Artistic-1.0 or GPL-1.0+cloud_download Downloads
To download packages, you need to log in and have a valid subscription.
Please select a product to see the available package versions:
Loading...
Loading package downloads...