Try this:
use Socket qw(inet_aton inet_ntoa); my $num = -1675066731; print inet_ntoa(inet_aton(hex(sprintf "%x", $num))); __DATA__ 156.40.130.149
In reply to Re: Re: Re: convert longIP to stringIP
by Mr. Muskrat
in thread convert longIP to stringIP
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |