Re: ip to decimal ip and back
- From: "Mumia W." <mumia.w.18.spam+nospam.usenet@xxxxxxxxxxxxx>
- Date: Fri, 18 Aug 2006 04:11:50 GMT
On 08/17/2006 12:13 AM, uttamhoode@xxxxxxxxx wrote:
hi all,
i need a perl script to
1) convert ip address to decimal eg 127.0.0.1 to 2130706433
Do a CPAN search for /::IP::/
I had to do this before, and it came down to using the right combination of unpack, reverse, map, chr, and split. :-D
and
2)decimal to ip address 2130706433 to 127.0.0.1
I had to do this once, and it came down to using the right combination of join, reverse, map, ord, split and pack.
uttam hoode
Good luck to you.
.
- References:
- ip to decimal ip and back
- From: uttamhoode
- ip to decimal ip and back
- Prev by Date: Re: howto copy OLD modules to new computer ?
- Next by Date: Re: John Bokma
- Previous by thread: Re: ip to decimal ip and back
- Next by thread: Regular Expression for Integer and float values
- Index(es):
Relevant Pages
|