I have 2 options. One is that I have a array that has a list of IPs. For example
my @Ip=(); # array that has the IPs below in it
Sample input:
108.0.0.30 108.0.0.30 108.0.0.30 192.168.1.1 192.168.1.2 10.0.0.1
I need a program that can sort such an array and tell which network class and subnet mask it is. For example, the output should be like
10.1.1.1/25 10.1.1.1 is ip and 25 is submask