http://www.perlmonks.org?node_id=118597


in reply to Challenge Problem: Merging Network Addresses

See my new solution in the snippet at Merge CIDRs. That's an order of magnitude faster, and might be within your acceptable spec.

-- Randal L. Schwartz, Perl hacker

  • Comment on Re: Challenge Problem: Merging Network Addresses