I’m still trying to figure out hashes. My array consists of two elements, the first is a filename and the second is a field in the file. So it looks like this:
File1 UserID File1 TextID File1 Field1 File2 UserID File2 TextID File2 Field1 File2 Field2 I have another array that has the same list only it is a complete list of what the array SHOULD consist of. I’m trying to match the two arrays so I can find out if a File coming in is missing a field. So if the SHOULD array has all three fields in File1 but it has Four fields for File2, I want to know that in the array coming in File2 is missing a field. I’m looking at hashes since that was suggested but the problem I have is that it looks like the Key in a hash has to be unique and it my case it won’t be unless I reverse the key value pairs and I’m not sure that would give me what I want. Iterating through the arrays doesn’t help because eventually the file/field pairs get mixed up and the program tells me that all sorts of fields are missing. Am I on the right track? What I want to happen is that the program looks through the ArrayComingIn, matches the File/Field names to the ShouldcontainFields array and prints out the filename and fields in the Should array that are missing in the ArrayComingIn. Thanks, dave --------------------------------- Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone.