12 Nov 2018 00:40:17 UTC
- Distribution: MooseX-Types-Email
- Module version: 0.008
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (2178 / 0 / 0)
- KwaliteeBus factor: 1
- 100.00% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity24 month
- Download (30.75KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:ETHER Karen Etheridge 🐾 🌋🦑🇹🇼🇭🇰🇺🇦
- SEE ALSO
- COPYRIGHT AND LICENCE
MooseX::Types::Email - Email address validation type constraints for Moose.
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' );
EmailMessagemust be an object that can be passed to Email::Abstract. Currently, constraining strings is not supported due to the leniency of Email::Abstract.
Shamelessly extracted from Reaction::Types::Email.
<firstname.lastname@example.org>added support for validating email messages.
<email@example.com>added support for lists of email addresses and messages.
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
Tomas Doran (t0m) <firstname.lastname@example.org
Karen Etheridge <email@example.com>
Tomas Doran (t0m) <firstname.lastname@example.org>
Alexander Hartmaier <email@example.com>
Chris Nehren <firstname.lastname@example.org>
Gregory Oschwald <email@example.com>
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.
perl -MCPAN -e shell install MooseX::Types::Email
For more information on module installation, please visit the detailed CPAN module installation guide.