Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Converting an IP from hexadecimal to dotted-quad

by Abigail-II (Bishop)
on Aug 29, 2002 at 13:28 UTC ( [id://193759]=note: print w/replies, xml ) Need Help??


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

Here's one way, using Regexp::Common, although it's unlikely to be the most efficient:
use Regexp::Common; $ip =~ s( ^$RE{net}{IPv4}{hex}{-sep=>''}{-keep}$ ){ join '.', map { hex } $2, $3, $4, $5 }xe;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-23 07:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found