I am using Perl for string manipulation and that involves use of the reverse function and of tr to translate my string. The script reads some strings and then performs following:
$revread = reverse($newword);
$revread =~ tr/TACGN/ATGCN/;
So the word is reversed and then gets translated--reverse complement. I have following question:
What if
$revread=~ tr/TACG/ATGC/;
is used. In this case if "N" is found will it be skipped? as in tr I have nothing there to translate it to OR it will be printed as just as "N".