NAME

Data::Validate::Common - Some common validator methods

VERSION

Version 0.3.3.3.3.2.1.1.1.1.1

SYNOPSIS

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".

SUBROUTINES/METHODS

is_email

Validates a email address (in a sloppy way, but accepts gmail '+' style addresses). Does not do any validation of the existence.

is_valid_email

Calls `is_email` and returns true or false and not the string itself.

is_domain

Just calles Data::Validate::Domain for the moment but leaves room for further modifiers (maybe via a plugin).

is_valid_domain

Calls `is_domain` and returns true or false and not the string itself.

is_hostname

Just calles Data::Validate::Domain for the moment but leaves room for further modifiers (maybe via a plugin).

is_valid_hostname

Calls `is_hostname` and returns true or false and not the string itself.

is_username

Does the username checking for the is_email function. Very basic regex checking in the moment.

is_valid_username

Calls `is_username` and returns true or false and not the string itself.

is_phone

Tests for a valid phone number - needs more work done to it though

is_valid_phone

Calls `is_phone` and returns true or false and not the string itself.

AUTHOR

Lenz Gschwendtner, <norbu09 at cpan.org>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Data::Validate::Common

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

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.