RFC: Net::IP::Correct




Hi,

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

Name: Net::IP::Correct

Description:
  Breakdown an incorrect range of IP addresses into
  valid IP Ranges

Rationale:

   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 192.168.1.0 - 192.168.1.5, this
   module would break this range down into: -
   192.168.1.0/255.255.255.252
   192.168.1.4/255.255.255.255
   192.168.1.5/255.255.255.255


Thanks.

--
Rohan

.