- or download this
$ perl -le'
my %hashIPs = qw(
...
Missing: 192.168.1.7 - 192.168.1.9
Missing: 192.168.1.13 - 192.168.1.255
- or download this
my @segments = grep {/^(\d{1,3}\.\d{1,3}\.\d{1,3})/} keys %hashIPs;
- or download this
my @segments = map /^(\d{1,3}\.\d{1,3}\.\d{1,3})/, keys %hashIPs;