Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: IP list generation

by $code or die (Deacon)
on Apr 28, 2001 at 21:39 UTC ( [id://76396]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @range = map { unpack "N", pack "C4", split /\./ } ($ARGV[0], $ARGV
    +[1]);
    print "@range\n"; # the numbers themselves
    ...
    for (my $i = $range[0]; $i <= $range[1]; $i++) {
      print join(".", unpack "C4", pack "N", $i), "\n";
    }
    
  2. or download this
    Range iterator outside integer range
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://76396]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-19 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found