in reply to Increment of ip address
$ip="1.2.3.4"; @ipnum=split(/./,$ip); $ipnum[$#ipnum]++; # this increments the last digit.. # then $ip=join(".",@ipnum); # result is '1.2.3.5';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Increment of ip address
by davidrw (Prior) on Jun 16, 2005 at 17:07 UTC |