MooseX::Types::Email::Loose - Email address loose validation type constraint for Moose.
package MyClass; use Moose; use MooseX::Types::Email::Loose qw/EmailAddress EmailMessage EmailAddressLoose/; has email => ( isa => EmailAddress, required => 1, is => 'ro' ); has message => ( isa => EmailMessage, required => 1, is => 'ro' ); has email_mobile => ( isa => EmailAddressLoose, required => 0, is => 'rw' );
MooseX::Types::Email::Loose is a subclass of MooseX::Types::Email, which uses Email::Valid::Loose to check for valid email addresses.
This module implements only EmailAddressLoose.
Also can export EmailAddress and EmailMessage, but they are implemented in MooseX::Types::Email.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.