Here is what you need to do:
- Declare a hash
- Read the first file line by line, populating the hash
- iterate over the second file, and look up the values in the hash
In your current program, you compare things to $pdbchain, so your hash keys have to be constructed exactly in the same way as $pdbchain
Give it a try, and when you have problems, come back with more specific questions. | [reply] [d/l] [select] |
Please, when you have an instance like this, post your code. Doubtless someone here can find and correct the error. If you can't post it because it's long since been over-written, I'd suggest you look into a Version Control System. Sometimes good approaches get discarded because a detail or two gets in the way.
| [reply] |