Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Converting hex IP addresses to decimal

by Clownburner (Monk)
on Oct 30, 2001 at 03:55 UTC ( [id://122002]=note: print w/replies, xml ) Need Help??


in reply to Converting hex IP addresses to decimal

And for those unfortunate souls who get their IP addresses in unsigned, non-delimited hex (ala SNMP agents):
sub hex2ip { return join(".", map {hex($_)} unpack('A2 A2 A2 A2',shift +)) }

"Non sequitur. Your facts are un-coordinated." - Nomad

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://122002]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-03-29 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found