NAME

Net::IP::Identifier::Net - subclass Net::IP to add net_or_ip method and stringification

VERSION

version 0.054

SYNOPSIS

use Net::IP::Identifier::Net;

DESCRIPTION

Net::IP::Identifier::Net subclasses Net::IP to add the net_or_ip method.

Stringification is provided, and uses the net_or_ip method to produce the string.

Methods

my $str = $ip->net_or_ip

Returns a string. For Net::IP::Identifier::Net objects which represent a single IP, the string is a dotted decimal (N.N.N.N). If $ip represents a netblock, the string is a CIDR (N.N.N.N/W).

AUTHOR

Reid Augustin <reid@hellosix.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Reid Augustin.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.