|Syntactic Confectionery Delight|
matching the contents of two (2) filesby stevenrh (Beadle)
|on Mar 10, 2005 at 19:10 UTC||Need Help??|
stevenrh has asked for the wisdom of the Perl Monks concerning the following question:
Hello All, I am trying to compare two files, and send the difference to another file. I have usernames in the first, and if they don't match the second, i want to print/redirect that username to the third file. So far, I have some pseudo-code. My conflict lies in plain noobness. I am getting really bent on filehandles and arrays/hashes.
Essentially, I would like the iterpreter to read the first line of FILE1, if its paattern is matched on FILE2, continue to Line 2 of FILE1, and repeat check on FILE2.. Else, print to screen, or to another file. Here is what I have so far:
Thanks in advance for any help