192.168.1.0 192.168.1.1 192.168.1.2 . . 192.168.1.255 #### my @segments = grep {/^(\d{1,3}\.\d{1,3}\.\d{1,3})/} keys %hashIPs;