in reply to Re: Re: Summarizing an array of IP's
in thread Summarizing an array of IP's
Make sure that you have "use Socket" included as showed in demo code. That's the module where you get inet_aton() and inet_ntoa(). (Be careful, this is not the same module as "IO::Socket".)
The code was actually tested and worked. Here is the testing result:
192.168.10.0 has 3 nodes 192.168.1.0 has 2 nodes 10.0.0.0 has 3 nodes
Update:
Read carric's reply. carric, whenever you copy and paste code, you should remove those '+' signs indicating line breaks. Those are not part of the original code.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Summarizing an array of IP's
by carric (Beadle) on Jan 08, 2004 at 01:30 UTC |