Hayato Imai > MooseX-Types-Email-Loose-0.01 > MooseX::Types::Email::Loose

Download:
MooseX-Types-Email-Loose-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

MooseX::Types::Email::Loose - Email address loose validation type constraint for Moose.

SYNOPSIS ^

  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' );

DESCRIPTION ^

MooseX::Types::Email::Loose is a subclass of MooseX::Types::Email, which uses Email::Valid::Loose to check for valid email addresses.

IMPLEMENTATION ^

This module implements only EmailAddressLoose.

Also can export EmailAddress and EmailMessage, but they are implemented in MooseX::Types::Email.

AUTHOR ^

hayajo <hayajo@cpan.org>

SEE ALSO ^

MooseX::Types::Email, Email::Valid::Loose

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: