Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Module for working with IP Addresses and Rangesby DrHyde (Prior) |
on Oct 25, 2010 at 09:43 UTC ( [id://867174]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|