Re: Inserting short strings into longer strings -- strncpy in Perl?

2004-09-03 Thread Edward WIJAYA
@array3 indicates the string was to overwrite at a random position. I assume the entire string must be inside the result. Yes, you are right Charles. And thanks so much too for Gunnar and Jeff. Best, Edward WIJAYA SINGAPORE -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: Inserting short strings into longer strings -- strncpy in Perl?

2004-09-03 Thread Charles K. Clarkson
From: Jeff 'japhy' Pinyan wrote: : On Sep 3, Edward Wijaya said: : : : @arr1 =('GATGGATTAAAGGAGAGGTACTTACAGG', : : 'CGCCCAAGAGGCCAGAGCGGAGCA', : : 'CGTTAATGCATTAAAGTTCT'); : : : :@arr2 = ('tcctcta', : : 'aggccac',

Re: Inserting short strings into longer strings -- strncpy in Perl?

2004-09-02 Thread Gunnar Hjalmarsson
Gunnar Hjalmarsson wrote: perldoc -f substr and perldoc -f rand -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Inserting short strings into longer strings -- strncpy in Perl?

2004-09-02 Thread Jeff 'japhy' Pinyan
On Sep 3, Edward Wijaya said: >@arr1 =('GATGGATTAAAGGAGAGGTACTTACAGG', > 'CGCCCAAGAGGCCAGAGCGGAGCA', > 'CGTTAATGCATTAAAGTTCT'); > >@arr2 = ('tcctcta', > 'aggccac', > 'agctgcg'); > > >Is there any efficient way to copy each element

Re: Inserting short strings into longer strings -- strncpy in Perl?

2004-09-02 Thread Gunnar Hjalmarsson
Edward Wijaya wrote: Suppose I have these two arrays: @arr1 =('GATGGATTAAAGGAGAGGTACTTACAGG', 'CGCCCAAGAGGCCAGAGCGGAGCA', 'CGTTAATGCATTAAAGTTCT'); @arr2 = ('tcctcta', 'aggccac', 'agctgcg'); Is there any efficient way to copy each el