Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^10: how to access elements in perl

by grewal7634 (Novice)
on May 13, 2014 at 11:24 UTC ( #1085885=note: print w/ replies, xml ) Need Help??


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

There is also one another problem, when i execute the above code it gives output starting from 289 - 489.. but not from 0 - 199.


Comment on Re^10: how to access elements in perl
Re^11: how to access elements in perl
by BrowserUk (Pope) on May 13, 2014 at 11:52 UTC
    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.

        You need to read and understand the documentation on printf. (Click the preceding link and read.)

        You might consider taking a Perl programming course or at least buying or borrowing a book.

        Try this free, online Perl Pprogramming book for beginners.


        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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2014-09-16 12:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (15 votes), past polls