Your's and arden's code (from his second response) where the only two that I could get to work. I like the simplicity of your's, but arden's seems to run faster.
Maybe faster. But arden's code, like yours and all the others except ysth's, have a major flaw: they will skip the first (matching) field of your log file!
If you decide to use arden's solution, change $newIPseen{$i}++ to ++$newIPseen{$i}
dave
In reply to Re: Re: Re: Correct Loop Structure
by Not_a_Number
in thread Correct Loop Structure
by Dru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |