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


in reply to finding netmask for "arbitrary" ip address

I could probably solve this problem if I knew how subnet masks worked and factored into this. Can you give a few examples of input data and desired output? I'm good with algorithms but don't know much about networking.