- or download this
#!/usr/bin/env perl
use strict;
...
print Dumper(@ips); # prints only last range of IPs
# Do stuff with each IP ...
- or download this
Found RANGE: 192.168.1.10 - 192.168.1.20
$VAR1 = '192.168.1.10';
...
$VAR9 = '192.168.1.38';
$VAR10 = '192.168.1.39';
$VAR11 = '192.168.1.40';
- or download this
Found RANGE: 192.168.1.10 - 192.168.1.20
Found RANGE: 192.168.1.30 - 192.168.1.40
...
$VAR9 = '192.168.1.38';
$VAR10 = '192.168.1.39';
$VAR11 = '192.168.1.40';