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

NAME

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

SYNOPSIS

    package MyClass;
    use Moose;
    use MooseX::Types::Email qw/EmailAddress/;
    use namespace::autoclean;

    has email => ( isa => EmailAddress, required => 1, is => 'ro' );

DESCRIPTION

Moose type constraint which uses Email::Valid to check for valid email addresses.

SEE ALSO

Moose::Util::TypeConstraints
MooseX::Types
Email::Valid

AUTHORS

Tomas Doran (t0m) <bobtfish@bobtfish.net>

Shamelessly extracted from Reaction::Types::Email.

LICENSE

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