Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

How can I count the number and kinds of letters at 1st, 2nd and 3rd positions of 3-letter words in a string?

by supriyoch_2008 (Monk)
on Apr 25, 2012 at 15:00 UTC ( #967084=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
     Letters at 3rd position:\n
      A3=$A3; T3=$T3; G3=$G3; C3=$C3; \n";
  2. or download this
    The result of counting from the string should look like:
     Letters at 1st position:
       A1=1; T1=1; G1=2; C1=0; 
       A2=1; T2=1; G2=1; C2=1; 
     Letters at 3rd position:
       A3=0; T3=1; G3=0; C3=3; 

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://967084]
Approved by ww
[erix]: I've been to Amsterdam before you were born
[LanX]: 1899?
[chacham]: Just paint the white house black again.
dbander snorts
LanX Gesundheit! :)
talexb wonders about dividing developers in those born before the Unix timestamp of zero .. and after. Spoiler: I'm before.
chacham remebers I am a mad scientist
[stevieb]: talexb I'm after by a few years, but we can still be friends because you live in my hometown ;)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2017-08-18 13:24 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (302 votes). Check out past polls.