-
-
12 Nov 2018 00:40:17 UTC
- Distribution: MooseX-Types-Email
- Module version: 0.008
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (1)
- Testers (2178 / 0 / 0)
- Kwalitee
Bus factor: 1- 100.00% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (30.75KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 5 contributors- Tomas Doran (t0m) <bobtfish@bobtfish.net
-
Tomas Doran (t0m)
-
Alexander Hartmaier
-
Chris Nehren
-
Gregory Oschwald
- NAME
- VERSION
- SYNOPSIS
- DESCRIPTION
- SEE ALSO
- ORIGIN
- ACKNOWLEDGEMENTS
- SUPPORT
- AUTHOR
- CONTRIBUTORS
- COPYRIGHT AND LICENCE
NAME
MooseX::Types::Email - Email address validation type constraints for Moose.
VERSION
version 0.008
SYNOPSIS
package MyClass; use Moose; use MooseX::Types::Email qw/EmailAddress EmailMessage EmailAddresses EmailMessages/; use namespace::autoclean; has email => ( isa => EmailAddress, required => 1, is => 'ro' ); has message => ( isa => EmailMessage, required => 1, is => 'ro' ); has emails => ( isa => EmailAddresses, required => 1, is => 'ro' ); has messages => ( isa => EmailMessages, required => 1, is => 'ro' );
DESCRIPTION
Moose type constraints which uses Email::Valid and Email::Abstract to check for valid email addresses and messages. Types that support both single items and an arrayref of items are available.
Note that
EmailMessage
must be an object that can be passed to Email::Abstract. Currently, constraining strings is not supported due to the leniency of Email::Abstract.SEE ALSO
ORIGIN
Shamelessly extracted from Reaction::Types::Email.
ACKNOWLEDGEMENTS
Chris Nehren
<apeiron@cpan.org>
added support for validating email messages.Karen Etheridge
<ether@cpan.org>
added support for lists of email addresses and messages.SUPPORT
Bugs may be submitted through the RT bug tracker (or bug-MooseX-Types-Email@rt.cpan.org).
There is also a mailing list available for users of this distribution, at http://lists.perl.org/list/moose.html.
There is also an irc channel available for users of this distribution, at
#moose
onirc.perl.org
.AUTHOR
Tomas Doran (t0m) <bobtfish@bobtfish.net
CONTRIBUTORS
Karen Etheridge <ether@cpan.org>
Tomas Doran (t0m) <bobtfish@bobtfish.net>
Alexander Hartmaier <abraxxa@cpan.org>
Chris Nehren <apeiron@cpan.org>
Gregory Oschwald <goschwald@maxmind.com>
COPYRIGHT AND LICENCE
This software is copyright (c) 2009 by Tomas Doran (t0m).
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install MooseX::Types::Email, copy and paste the appropriate command in to your terminal.
cpanm MooseX::Types::Email
perl -MCPAN -e shell install MooseX::Types::Email
For more information on module installation, please visit the detailed CPAN module installation guide.