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

Re: IP address generation

by moot (Chaplain)
on May 24, 2005 at 14:12 UTC ( [id://459981]=note: print w/replies, xml ) Need Help??


in reply to IP address generation

The very useful NetAddr::IP has some methods to walk through an IP block:
use NetAddr::IP; my $ip = NetAddr::IP->new("192.168.0.0/16"); my $bcast = $ip->broadcast; while ($ip < $bcast) { # do something with $ip $ip++; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-19 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found