Programming in PERL. Please help!?

sweets

New member
Programming in PERL. Please help!?
This is the sequence:

@aminoacids =('Phe', 'Val', 'Asn', 'Gln', 'His', 'Leu', 'Cys', 'Gly', 'Ser' );

Questions:

1. Do a mutation. Convert Gly to Asp

2. Create an inversion: get two positions in the sequence from the user and invert the sequence of the amino acids between them. For example, if the user enters 3 and then 6, the program should replace Asn, Gln, His, Leu with Leu, His, Gln, Asn. (Using "array slices" and the "reverse" function). Print the result.

3.Create a string that will contain the amino acid sequence of the resulting polypeptide, in the format Phe-Val-Asn... (use string concatenation inside a foreach loop. Make sure not to leave a "-" before the first amino acid or after the last one). Print that string.


I've been working hard on this....can someone please help me?

Note: its PERL not JAVA.
 
Back
Top