Data::Validate::IP

Data::Validate::IP is a Perl module that contains IP validation methods.
Download

Data::Validate::IP Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • 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::IP Tags


Data::Validate::IP Description

Data::Validate::IP is a Perl module that contains IP validation methods. Data::Validate::IP is a Perl module that contains IP validation methods.SYNOPSIS use Data::Validate::IP qw(is_ipv4); if(is_ipv4($suspect)){ print "Looks like an ip address"; } else { print "Not an ip addressn"; } # or as an object my $v = Data::Validate::IP->new(); die "not an ip" unless ($v->is_ipv4('domain.com'));This module collects ip 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::IP Related Software