RFC: Net::IP::Correct

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


I would like comments from the community about a module I would
like to implement.

Name: Net::IP::Correct

   Breakdown an incorrect range of IP addresses into
   valid IP Ranges


    This module will exist as a subclass of Net::IP. It would
    basically accept a range of IP address (Net::IP objects), and
    if the range is incorrect, it would break it down into
    seperate correct IP ranges. Each IP range returned would be a
    Net::IP object

    I think Net::IP::Correct is a good enough namespace, although
    there is also Net::IP::Range::Correct, which is more
    meaningful. I'm open to suggestions.

    For example: given the range -, this
    module would break this range down into: -



Re: RFC: Net::IP::Correct

Quoted text here. Click to load it

What is your definition of "correct" here?    I would have expected the

Mike Guy

Re: RFC: Net::IP::Correct

M.J.T. Guy wrote:
Quoted text here. Click to load it

Yes. That is correct :-)
Unfortunately, I was under the impression that one
couldn't create an IP block consisting of 2 addresses.

But I double-checked, and we can, so a .254 netmask
is possible.

I also propose to name this module Net::IP::Range::Split



Re: RFC: Net::IP::Correct

*** post for FREE via your newsreader at post.newsfeed.com ***

Rohan> Hi,

Rohan> I would like comments from the community about a module I would
Rohan> like to implement.

Rohan> Name: Net::IP::Correct

As we've also told you on Perlmonks
(<http://www.perlmonks.org/index.pl?node_id=470976 ), this is identical
to what Net::IP's "ip_range_to_prefix" does.

Please pay attention there.  And don't ask questions in multiple
forums without disclosure.  IT WASTES PEOPLE'S TIME, and is therefore

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

 -----= Posted via Newsfeed.Com, Uncensored Usenet News =-----
http://www.newsfeed.com - The #1 Newsgroup Service in the World!
-----== 100,000 Groups! - 19 Servers! - Unlimited Download! =-----

Site Timeline