$ip = $_[0]; # your 32-bit int $arr[3] = $ip & 255; $ip >>= 8; $arr[2] = $ip & 255; $ip >>= 8; $arr[1] = $ip & 255; $ip >>= 8; $arr[0] = $ip & 255;
In reply to Re^3: IP Iterator
by camlet
in thread IP Iterator
by camlet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |