Skip site navigation (1)Skip section navigation (2)
Date:      7 Apr 2011 16:57:15 -0000
From:      "John Levine" <>
Subject:   Re: Merging CIDR lists
Message-ID:  <20110407165715.90743.qmail@joyce.lan>
In-Reply-To: <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
In article <> you write:
>Does anyone have a convenient way to merge a list of CIDR netblocks?

Using Net::CIDR or Net::CIDR::Lite, both of which are in the ports,
this script will do it:

----- snip -----
use Net::CIDR;

print join(' ',Net::CIDR::cidradd(@ARGV)) . "\n";
----- snip -----

Want to link to this message? Use this URL: <>