Ekolet has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Modification of read only values.
by JavaFan (Canon) on Mar 17, 2012 at 18:39 UTC | |
|
Re: Modification of read only values.
by AnomalousMonk (Archbishop) on Mar 17, 2012 at 19:09 UTC | |
|
Re: Modification of read only values.
by CountZero (Bishop) on Mar 17, 2012 at 18:39 UTC |