NAME

Data::Format::Validate::IP - A IP validating module.

SYNOPSIS

Function-oriented module capable of validating the format of IPV4 or IPV6 addresses.

UTILITIES

IP (ipv4)
    use Data::Format::Validate::IP 'looks_like_ipv4';

    looks_like_ipv4 '127.0.0.1';    # returns 1
    looks_like_ipv4 '255255255255'; # returns 0
IP (ipv6)
    use Data::Format::Validate::IP 'looks_like_ipv6';

    looks_like_ipv6 '1762:0:0:0:0:B03:1:AF18';  # returns 1
    looks_like_ipv6 '17620000AFFFB031AF187';    # returns 0

CONTRIBUITION

This source is on Github:

        https://github.com/rozcovo/Data-Format-Validate/blob/master/lib/Data/Format/Validate/IP.pm

AUTHOR

Created by Israel Batista <rozcovo@cpan.org>