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.
0 - I'm a blankster
0 - My devices have no keyboard
0 - I use a chorded keyboard that transcends your concept of keys
26 - I need the other keys for Perl sigils!
31 - I write code in the original APL
31 - ß counts only as one letter!
∞ - I use an Optimus keyboard
ℵ1 - I reject your Latin-centric notion of letters
Results (25 votes),