while($text =~ m/(TATAAT|TTGACAT)\w+[^ATG]?(ATG\w+)[^TAG|TAA|TGA]?/g) { $2=~tr/ATGC/UACG/; print $2;
Hello, I just started to learn perl and just discovered this forum. Anyways what I am trying to do is find genes on a DNA strand and translate them into RNA. (for non biology speakers I am trying to parse a part of the regex, and translate all A's into U's etc...) but when I try to modify $2 parse it tells me that "modification of a read only value at c://blabla.... Any ideas how can I do this? thanks in advance.
In reply to Modification of read only values. by Ekolet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |