Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Answer: Converting an IP from hexadecimal to dotted-quad

( #193668=categorized answer: print w/ replies, xml ) Need Help??

Q&A > data formatting > Converting an IP from hexadecimal to dotted-quad contributed by merlyn

perhaps
join '.', unpack "C*", pack "H*", $ip;

Comment on Answer: Converting an IP from hexadecimal to dotted-quad
Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2016-02-06 19:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (235 votes), past polls