Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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 -

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://867174]
[M4ver1k]: I feel like being able to toggle a running script on the fly by updating variables from a config file using Config::Simple. But in the while loop, it seems like it doesn't update the variable after the first past. Is this generally just a bad idea?
[M4ver1k]: pass*

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2017-11-20 03:12 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (283 votes). Check out past polls.