App::Manoc::IPAddress::IPv4 - IPv4 Addresses
version 2.99.2
A class for IPv4 addresses. Supports padding, unpadding, stringification and comparison operators.
Address integer representation.
Return the address in unpadded form. Automatically called by stringification.
my $addr = App::Manoc::IPAddress::IPv4->new('10.1.100.1'); $addr->padded; # '010.001.100.001' $addr->unpadded; # '10.1.100.1' "$addr" eq '10.1.100.1'; # true $addr > App::Manoc::IPAddress::IPv4->new('2.1.1.1'); # also true
Gabriele Mambrini <gmambro@cpan.org>
Enrico Liguori
This software is copyright (c) 2017 by Gabriele Mambrini.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::Manoc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Manoc
CPAN shell
perl -MCPAN -e shell install App::Manoc
For more information on module installation, please visit the detailed CPAN module installation guide.