Input::Validator::Constraint::Email - Email constraint
$validator->field('email')->email;
Checks whether a value looks like an email address. This is a very simple yet correct validation. It checks if an email has a correct length (name and domain) and has at least one dot in the domain.
is_valid
Validates the constraint.
Input::Validator, Input::Constraint
To install Input::Validator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Input::Validator
CPAN shell
perl -MCPAN -e shell install Input::Validator
For more information on module installation, please visit the detailed CPAN module installation guide.