Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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 (Scribe)
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
    #!usr/bin/perl-w
    $a="ATCGGCGCCTAT";
    code??
    ...
     Letters at 3rd position:\n
      A3=$A3; T3=$T3; G3=$G3; C3=$C3; \n";
    exit;
    
  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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2015-07-02 00:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (25 votes), past polls