Data::Validate::DomainData::Validate::Domain is a Perl module that allows domain validation methods. | |
Download |
Data::Validate::Domain Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Neil Neely
- Publisher web site:
- http://search.cpan.org/~neely/Data-Validate-Domain-0.08/lib/Data/Validate/Domain.pm
Data::Validate::Domain Tags
Data::Validate::Domain Description
Data::Validate::Domain is a Perl module that allows domain validation methods. Data::Validate::Domain is a Perl module that allows domain validation methods.SYNOPSIS use Data::Validate::Domain qw(is_domain); # as a function my $test = is_domain($suspect); die "$test is not a domain" unless defined $test; or my $test = is_domain($suspect,%options); die "$test is not a domain" unless defined $test; # or as an object my $v = Data::Validate::Domain->new(%options); my $test = $v->is_domain($suspect); die "$test is not a domain" unless defined $test;This module collects domain validation routines to make input validation, and untainting easier and more readable.All functions return an untainted value if the test passes, and undef if it fails. This means that you should always check for a defined status explicitly. Don't assume the return will be true. (e.g. is_username('0'))The value to test is always the first (and often only) argument. Requirements: · Perl
Data::Validate::Domain Related Software