sivaraman,

Thank you for recognizing that your lack of description is leading us into providing inadequate solutions. You also have to recognize that changing requirements (5 million to 30 million is a significant difference), will also lead to us wasting time and energy.

You still have done an inadequate job of describing all of the requirements in order for us to provide a solution that meets your requirements. Each time a monk provides a new solution based on your "it didn't work because X", you reply with "that didn't work because Y". In order for us to help, you need to define all the parameters of the problem first. I mentioned a number of things in Re^3: Dear Monks. Since your current issue seems to be memory, consider a few more: What operating system? How much physical memory? Is perl 32 or 64 bit?

There is a relatively simple solution if order doesn't matter but since you haven't removed that as a constraint for us - it is rather difficult to guess what will satisfy your unwritten requirements.

Additionally, you have to understand that PerlMonks is not a free script writing service. We expect you to show effort. If you don't know where the perl documentation is - please see Perldoc online though a local copy was probably installed and available from the command line. With that said, I would be happy to provide a solution to you once you do a better job at describing the requirements but I am not going to keep guessing with "try this".

Cheers - L~R


In reply to Re^5: Dear Monks by Limbic~Region
in thread Dear Monks by sivaraman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.