| CPAN Ratings NetAddr-IP reviews | |
| Home | Search | About | Bitcard Account | Login |
RSS | Module Info | Add a review of NetAddr-IP
Re: request for...
NetAddr::IP::isMask to validate string as a mask from any notation "contiguous 1's on the left followed by contiguous 0's to the right"
See the sub-module NetAddr::IP::Util function "notcontiguous"
usage:
$ip = NetAddr::IP->new("some address");
($spurious,$cidr) = notcontiguous($ip->{mask});
This function counts the bit positions remaining in
the mask when the rightmost '0's are removed.
input: 128 bit netmask
returns true if there are spurious
zero bits remaining in the
mask, false if the mask is
contiguous one's,
128 bit cidr number
Michael Robinton - 2011-11-14T11:27:59
This is a great module with a nice interface. I have been using it without problems for at least 3 or 4 years in all kinds of projects including extensive use in an IP management tool.
Bradley C Bailey - 2007-07-19T15:48:33
Great job Luis!
Chuck
chucksmith - 2005-05-07T06:05:12
I don't quite understand why we need three libraries for dealing with IP address blocks, but "choice" is a double-edged sword. This is the first one I stumbled upon and began using, and then after realizing that I had other options, did my research. I agree with this author, that it is probably more a matter of preference than anything else, but NetAddr::IP does seem to have the widest range of functionality.
So as my preferences go, GNU/Linux for os's, Debian for GNU/Linux distros, Perl for high-level programming, and now NetAddr::IP for IP Address Abstraction in Perl, I think we need the following added to the NetAddr suite:
NetAddr::MAC for MAC Addresses
NetAddr::OSI for OSI networks
NetAddr::IP::isMask validate string as a mask from any notation "contiguous 1's on the left followed by contiguous 0's to the right"
I should get to work.
-Robert
rschott - 2004-05-02T11:02:24
|
Perl.org sites
: bugs
| dev
| history
| jobs
| learn
| lists
| use
Site Information and Contacts |
|