Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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.

Replies are listed 'Best First'.
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 drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2016-07-24 04:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (221 votes). Check out past polls.