Re: [asandybox] Stuck on how to iterate a list in a file against a logfile.
[In reply to]

Can't Post

This depends on *how* you define a match. You did not explain in your posting, what you call a match: For example, are you interested in those lines in the logfile which contain one of the ip addresses somewhere, or lines which consist only of one of the ip addresses, or lines having all the ip addresses, etc.

Re: [asandybox] Stuck on how to iterate a list in a file against a logfile.
[In reply to]

Can't Post

It would be much more efficient to load the IP addresses into a hash instead of an array and then use an array slice to extract the IP address from the log entry which is then used to do a simple lookup in the hash.

Appears to do the job. Don't think it's very efficient, but it works for the task at hand and I can start to munge our proxy logs for some needed information. Thank you FishMonger and Rovf for your inputs. Very helpful for me to finally figuring things out.