in reply to File Intersection problem
The problem appears to boil down to:
opening the file containing the names you wish to match, and reading that into some data structure that you can use to match with. Perl hashes good at exact matches.
opening the other file, and reading it line by line.
parse the line in some way to identify the names it contains. You may be able to split it, or you may need to use a regular expression.
see how many (if any) of those names are in the collection of names you want to match.
decide what to output, and do that.
I imagine that matching names may be small challenge. Does, for example 'harry' match either 'Harry' or, indeed 'Old Harry' ? But otherwise, this looks straightforward enough. What have you tried ?
|
|---|