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

Re^2: IP to hex translator

by lodin (Hermit)
on Aug 14, 2008 at 15:12 UTC ( [id://704366]=note: print w/replies, xml ) Need Help??


in reply to Re: IP to hex translator
in thread IP to hex translator

... and you don't even have to write the pattern yourself.

use Regexp::Common 'net'; $ip =~ /^$RE{net}{IPv4}\z/ or die;

lodin

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-19 01:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found