Sumit Kaur wrote:
Hi,

I have to write my first Perl script . This scripts Searches for rare =
codons in nucleotide sequence . The nucleotide sequence is entered by =
the user in the format "ATTGCAA.." and then the program breaks this =
sequence in the groups of three alphabets like ATT,GCA...so no.=20

Please suggest .


Please dont piggy back post - it breaks the thread of the original conversation.

If the data will always be "three" - maybe this will give you an idea:

@array = split(//, 'ABCDEFGHIJKLMONPQRSTUVWXYZ');

my $index = -1;

while($#array > $index) {
  print "\nSet $index ";
  print $array[++$index];
  print $array[++$index];
  print $array[++$index];
}


and so on... -Bill- __Sx__________________________________________ http://youve-reached-the.endoftheinternet.org/

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to