Kind Monks: Unfortunately, this question only arose due to my hardware being a 486, so I guess the proper answer would be to buy a new computer, but i digress...
I have a big hash of lists, like so:
$cords{1} = [a,b]; $cords{2} = [c,d]; ... $cords{9999} = [w,x]; $cords{10000} = [y,z];
The list items a..z are calculated by a complex algorythm, which unfortunately takes 6 minutes to compute all 10000 hash elements. Not being the best programmer in the world, I need to test my script a lot, which gets pretty tedious waiting for the hash to be populated, so...
Can I save it to disk? The nums it calculates are always the same, so thats no problem. I need to maintain the structure obviously, is there some way of doing this?

In reply to Saving a %hash by smitz

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.