Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Converting an IP from hexadecimal to dotted-quad

by jmcnamara (Monsignor)
on Aug 29, 2002 at 08:24 UTC ( [id://193703]=note: print w/replies, xml ) Need Help??


in reply to Converting an IP from hexadecimal to dotted-quad

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://193703]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-20 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found