Help for this page

Select Code to Download


  1. or download this
    10.0.1.252
    10.0.1.253
    ...
    10.0.2.3
    10.0.2.4
    10.0.2.5
    
  2. or download this
    sub ip_fr_dotted { unpack 'N', pack 'C4', split /\./, $_[0] }
    sub ip_to_dotted { join '.', unpack 'C4', pack 'N', $_[0] }
    ...
    for (my $ip=$start; $ip<=$end; $ip++) {
       print(ip_to_dotted($ip), "\n");
    }