|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re: Not Matching String is Matchingby cchampion (Curate) |
| on Aug 16, 2003 at 15:20 UTC ( #284337=note: print w/ replies, xml ) | Need Help?? |
|
Mr. Muskrat has found the immediate solution. For your next attempt, let me suggest some improvement in your code, so that it becomes more readable and easier to maintain.
The first method creates a regular expression from an array. You can add to an array (or delete) much easier than editing such a complicated regex. The second example uses a subroutine that, depending on the number of your IPs to ignore, can be much quicker than a regex with alternation. HTH
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||