MooseX::Types::IPv4 - IP Address types
package MyClass; use Moose; use MooseX::Types::IPv4 qw/ip2 ip3 ip4/; use namespace::autoclean; has 'ipaddress2' => ( isa => ip2, is => 'rw' required => 1 ); has 'ipaddress3' => ( isa => ip3, is => 'rw' required => 1 ); has 'ipaddress4' => ( isa => ip4, is => 'rw' required => 1 );
Moose type constraints that provide ip validation
Kyle Hultman <khultman@gmail.com>
<khultman@gmail.com>
Copyright 2009 the above AUTHORS
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install MooseX::Types::IPv4, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Types::IPv4
CPAN shell
perl -MCPAN -e shell install MooseX::Types::IPv4
For more information on module installation, please visit the detailed CPAN module installation guide.