Data::Validate::Common - Some common validator methods
Version 0.3.3.3.3.2.1.1.1.1.1
Adding one more validator to the vast list of existing ones. I could have named it Validator::DWIW but went with the Common module as it should be pretty standard stuff and is normally just one/two regex changes to the existing ones that mekt it a bit more "real life".
Validates a email address (in a sloppy way, but accepts gmail '+' style addresses). Does not do any validation of the existence.
Calls `is_email` and returns true or false and not the string itself.
Just calles Data::Validate::Domain for the moment but leaves room for further modifiers (maybe via a plugin).
Calls `is_domain` and returns true or false and not the string itself.
Calls `is_hostname` and returns true or false and not the string itself.
Does the username checking for the is_email function. Very basic regex checking in the moment.
Calls `is_username` and returns true or false and not the string itself.
Tests for a valid phone number - needs more work done to it though
Calls `is_phone` and returns true or false and not the string itself.
Lenz Gschwendtner, <norbu09 at cpan.org>
<norbu09 at cpan.org>
Please report any bugs or feature requests to bug-data-validate-common at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Data-Validate-Common. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-data-validate-common at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Data::Validate::Common
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Data-Validate-Common
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Data-Validate-Common
CPAN Ratings
http://cpanratings.perl.org/d/Data-Validate-Common
Search CPAN
http://search.cpan.org/dist/Data-Validate-Common/
Copyright 2011 Lenz Gschwendtner.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Data::Validate::Common, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Validate::Common
CPAN shell
perl -MCPAN -e shell install Data::Validate::Common
For more information on module installation, please visit the detailed CPAN module installation guide.