Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    use strict;
    ...
    print Dumper(@ips); # prints only last range of IPs
    
    # Do stuff with each IP ...
    
  2. 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';
    
  3. 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';