Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^4: DNA Reverse Complement

by Your Mother (Canon)
on Aug 20, 2009 at 17:57 UTC ( #790157=note: print w/ replies, xml ) Need Help??


in reply to Re^3: DNA Reverse Complement
in thread DNA Reverse Complement

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.


Comment on Re^4: DNA Reverse Complement
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://790157]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2014-07-12 06:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (238 votes), past polls