Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

(tye)Re2: Challenge Problem: Merging Network Addresses

by tye (Sage)
on Oct 23, 2001 at 00:24 UTC ( #120631=note: print w/replies, xml ) Need Help??


in reply to Challenge Problem: Merging Network Addresses

I combined my range-to-CIDR with runrig's solution to come up with (tye)Re2: Net::CIDR::Lite ?? (Merge CIDR addresses) that does your nm5.in in under 3 seconds (on my computer), can handle addresses with more than 4 octets, and uses bit-wise operations on strings (which makes it a rather Perlish solution). runrig's method of merging ranges is also rather Perlish.

        - tye (but my friends call me "Tye")
  • Comment on (tye)Re2: Challenge Problem: Merging Network Addresses

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://120631]
help
Chatterbox?
[shmem]: apt-get install exuberant-ctags
[Lady_Aleena]: I think I heard vim has a big learning curve.
[shmem]: then in the root of your source tree run: ctags -R
[shmem]: you get a file named tags where all symbols and the places where they are used are listed
[Lady_Aleena]: geany may not support that.
[shmem]: I see that there is a plugin geany-plugin- codenav
[shmem]: maybe that supports ctags, check the documentation

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2017-04-27 12:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (506 votes). Check out past polls.