FormValidator::Simple::Plugin::NetAddr::IP - IP Address validation
use FormValidator::Simple qw/NetAddr::IP/; my $result = FormValidator::Simple->check( $req => [ ip => [ 'NOT_BLANK', 'NETADDR_IPV4HOST' ], ] );
This module adds IP Address validation commands to FormValidator::Simple. It uses NetAddr::IP to do the validation. There are other modules that may do IP Address validation with less overhead, but NetAddr::IP was already being used in the project that this was written for.
Checks for a single IPv4 address. Address supplied must be in dotted quad or CIDR format. Does not accept DNS names.
Checks for a IPv4 network block. Address supplied must be in dotted quad or CIDR format. Does not accept DNS names. A /32 is accepted as a network.
FormValidator::Simple
NetAddr::IP
Agent::TCLI::Package::Net for which this module was needed.
Eric Hacker <hacker at cpan.org>
None known at this time.
Copyright (c) 2007, Alcatel Lucent, All rights resevred.
This package is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
To install FormValidator::Simple::Plugin::NetAddr::IP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FormValidator::Simple::Plugin::NetAddr::IP
CPAN shell
perl -MCPAN -e shell install FormValidator::Simple::Plugin::NetAddr::IP
For more information on module installation, please visit the detailed CPAN module installation guide.