Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^3: DNA Reverse Complement

by Anonymous Monk
on Aug 20, 2009 at 17:19 UTC ( #790149=note: print w/ replies, xml ) Need Help??

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

The above sub does not work

Comment on Re^3: DNA Reverse Complement
Replies are listed 'Best First'.
Re^4: DNA Reverse Complement
by Your Mother (Chancellor) on Aug 20, 2009 at 17:57 UTC

    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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2015-10-07 03:48 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (170 votes), past polls