NAME MooX::Types::MooseLike - some Moosish types and a typer builder SYNOPSIS # The Base and Numeric types are stable # but the API to build new types is Experimental package MyApp::Types; use MooX::Types::MooseLike::Base; use base qw(Exporter); our @EXPORT_OK = (); my $defs = [{ name => 'MyType', test => sub { predicate($_[0]) }, message => sub { "$_[0] is not the type we want!" } }]; MooX::Types::MooseLike::register_types($defs, __PACKAGE__); # optionally add an 'all' tag so one can: # use MyApp::Types qw/:all/; # to import all types our %EXPORT_TAGS = ('all' => \@EXPORT_OK); DESCRIPTION See MooX::Types::MooseLike::Base for an example of how to build base types. See MooX::Types::MooseLike::Numeric for an example of how to build subtypes. AUTHOR mateu - Mateu X. Hunter (cpan:MATEU) CONTRIBUTORS mst - Matt S. Trout (cpan:MSTROUT) COPYRIGHT Copyright (c) 2011-2012 the MooX::Types::MooseLike "AUTHOR" and "CONTRIBUTORS" as listed above. LICENSE This library is free software and may be distributed under the same terms as perl itself.