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++; }
In reply to Re: IP address generation
by moot
in thread IP address generation
by imperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |