in reply to Perl script that will read two pdb files with different line numbers and will replace the chain letter from the first to the second file

In addition to hippo's comments, please note that nested loops are likely to crucify performances if your files are even moderately large.

You should probably store the values of interest of the first file into a hash and then lookup the hash when reading the second file. This will be faster and easier to implement.

  • Comment on Re: Perl script that will read two pdb files with different line numbers and will replace the chain letter from the first to the second file