To install MooseX::Types::IPv4, simply copy and paste either of the commands 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.