in reply to Re^3: When the input file is huge !!!
in thread When the input file is huge !!!

Thanks for your reply. Am happy that the program produces output for such a huge file now. but, sorry to tell you that, after minor changes though i managed to get the output, the numbers fetched are wrong for some sequences, where do i have to check to make the corrections?

Replies are listed 'Best First'.
Re^5: When the input file is huge !!!
by BrowserUk (Patriarch) on Jan 06, 2009 at 06:03 UTC

    Please try the updated code in the node above.

    The problem was I got over-enthusiastic with my big number to disable the wrapping. 1e10 in a integer context (the length field of substr) was translated to -1. Hence one digit was being chopped of the end of the sequences.

    At least that was the only problem I found here when I tested it.


    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.