Dear all,<br>
<br>
I have a txt file which stores 20 short DNA sequences and the length of each is 8, let's <br>


call it A. Meanwhile, I have another txt file which owns 100 long DNA sequences and the length of each is<br>


200, let's call it B. <br>

<br>

Then, I want to replace a substring of each sequence in B with each one in A.<br>


The replacement starting site could be specified as you want(such as<br>

starting at position 1 for the first sequence in B, 10th for the 2nd sequence in<br>

B, 20th for the 3rd, until 190th for the 20th in B ) or picked<br>


by the program randomly. I am pretty sure substr(string,index,length,replacement string) can finish a part<br>
of this work. <br>
<br>
But I have limited experience of using Perl to manipulate two files. Can anybody<br>
give me some suggestions?<br>
<br>
Thank you very much and look forward to your reply!<br>
<br>
Best Regards,<br>
      Maya<br>