Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Data::Validate::IP 0.08

    Download button

    No screenshots available
    Downloads: 427  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.9/5)
    24 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Neil Neely | More programs
    GPL / FREE
    December 20th, 2007, 09:42 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    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.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    IP validation | validation methods | Perl module | IP | validation | methods

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM