Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^9: how to access elements in perl

by BrowserUk (Pope)
on May 08, 2014 at 10:43 UTC ( #1085439=note: print w/ replies, xml ) Need Help??


in reply to Re^8: how to access elements in perl
in thread how to access elements in perl

How can i do this.

Change something; run the code, see how the output changes. Repeat.

You say you are learning Perl. You won't learn anything until you start trying things for yourself.

I gave you code to get you started, because that's the hardest part. Now you need to start trying things for yourself.

When you have a specific problem you cannot solve, I'll help you. But I won't do it for you.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re^9: how to access elements in perl
Re^10: how to access elements in perl
by grewal7634 (Novice) on May 09, 2014 at 04:36 UTC
    Ok i will try. Thanks.
Re^10: how to access elements in perl
by grewal7634 (Novice) on May 13, 2014 at 11:24 UTC
    There is also one another problem, when i execute the above code it gives output starting from 289 - 489.. but not from 0 - 199.
      it gives output starting from 289 - 489.. but not from 0 - 199.

      Hm. If you look at the output I posted above, my code outputs the counts for 0 - 199, 1 - 200, 2 - 201, ...

      So what did you change? (Post your current version of the code and don't forget the <code></code> tags.)


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

        Check this code : This code gives me output starting from range: 39761 .. 39960 rather than 0-200. And one more thing it shows G+C and GC percentage as such as i given in the code, i want the total of G+C e.g. 30+40= 70 rather than 30+40.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (18)
As of 2015-07-01 18:18 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 (16 votes), past polls