JDWilliams
07-19-2006, 11:22 AM
I've got two arrays. Array1 has around 200 phone numbers. Array2 has around 600 phone numbers. What I would like to do compare the two and generate a third array that has numbers from Array2 that don't have a match in Array1.
What's the most efficient way to do this? Grep? I'll have a cgi script doing this and will want to minimize the time that it takes for this to run. I typically seem to come up with the most cumbersome and processor intensive code for these sort of things.
What's the most efficient way to do this? Grep? I'll have a cgi script doing this and will want to minimize the time that it takes for this to run. I typically seem to come up with the most cumbersome and processor intensive code for these sort of things.