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

by jmcnamara (Monsignor)
on Aug 29, 2002 at 08:24 UTC ( #193703=categorized answer: print w/replies, xml ) Need Help??

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

You could also do it as follows, although it's still probably not as fast as the pack/unpack method:
join '.', map { hex } $ip =~ /../g;

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2017-11-23 04:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (328 votes). Check out past polls.

    Notices?