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"), $/; # GACTACG print scalar revcompl("CGTAGTC"), $/; # 1
There was just a post on this issue this morning: Mini-Tutorial: Scalar vs List Assignment Operator.
In reply to Re^4: DNA Reverse Complement
by Your Mother
in thread DNA Reverse Complement
by mousey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |