in reply to
Re^2: DNA Reverse Complement
in thread DNA Reverse Complement
The above sub does not work
Of course it does. I'm guessing you called it in scalar context and got the count of the transform; e.g., 1.
print revcompl("CGTAGTC"), $/;
print scalar revcompl("CGTAGTC"), $/;
There was just a post on this issue this morning: Mini-Tutorial: Scalar vs List Assignment Operator.
Used as intended
The most useful key on my keyboard
Used only on CAPS LOCK DAY
Never used (intentionally)
I don't use a keyboard
Results (14 votes),