Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Module for working with IP Addresses and Ranges

by DrHyde (Prior)
on Oct 25, 2010 at 09:43 UTC ( #867174=note: print w/replies, xml ) Need Help??


in reply to Re: Module for working with IP Addresses and Ranges
in thread Module for working with IP Addresses and Ranges

It's your choice, but you don't really need a module for this. The simplest way might just be to match the first three numbers, then do a ">= and <=" on the range in the last one.

While that would work for the example given, it wouldn't work if he needed to see if an address was in the range 192.168.0.0 - 192.168.1.255.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2018-09-22 18:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (190 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!