Perl: the Markov chain saw | |
PerlMonks |
Re: Reg Ex to find IP address in rangeby gjb (Vicar) |
on Aug 28, 2003 at 16:34 UTC ( [id://287438]=note: print w/replies, xml ) | Need Help?? |
First of, I assume your IP address is actually valid and in the format you mention in your post. Now for your problem: why make life hard? The code below is quite simple:
You may -- or even should -- want to look at Net::IP, especially at the bincomp function. Hope this helps, -gjb-
In Section
Seekers of Perl Wisdom
|
|