| Author |
aggregating single IP addresses into CIDRs?
|
|
| Gerald Jones 2004-05-18, 6:31 pm |
| Is there a perl way to take a list of IP unordered addresses in dotted quad
format and group them into more compact CIDR format?
TIA,
Gerald.
| |
| Josef Moellers 2004-05-19, 3:31 am |
| Gerald Jones wrote:
> Is there a perl way to take a list of IP unordered addresses in dotted =
quad
> format and group them into more compact CIDR format?
How about :
Convert to integer (doable if IPv4)
Or into one integer
Find the least significant "1".
Done
--=20
Josef M=F6llers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize
-- T. Pratchett
| |
| John W. Krahn 2004-05-19, 7:31 pm |
| Gerald Jones wrote:
>
> Is there a perl way to take a list of IP unordered addresses in dotted quad
> format and group them into more compact CIDR format?
http://search.cpan.org/search?query=CIDR&mode=module
John
--
use Perl;
program
fulfillment
|
|
|
|