more useful options | |
PerlMonks |
Re: Match a Range of IP'sby Zaxo (Archbishop) |
on Sep 30, 2004 at 16:21 UTC ( [id://395398]=note: print w/replies, xml ) | Need Help?? |
The [1-99] doesn't do what you think. It is a character class which will match a single digit in the range one to nine. That corresponds to what you see. You can match and test with I like to do this kind of thing with IP numbers from Socket::inet_aton(), using bitwise ops, but that isn't such an advantage where netmasks don't correspond to the ranges. After Compline,
In Section
Seekers of Perl Wisdom
|
|