I don't know any better, gentler way of saying this, but the code you posted above is very broken. As written, it won't even compile. Your first four lines are all assignment statements, and not a one has a ";" character to end the statement. Furthermore, I see nowhere where you are actually assigning any data to @trans or @superchunk. When you do:

@trans[1] = @superchunk;

You aren't assigning the "chunk" to the slot in @trans, the context there (caused by the left-hand-side being an array slice... did you mean that element, instead?) means that the first element of @superchunk will go into the second element of @trans, and since the slice needs no more data, no more copying will get done. Did you mean to assign the whole list contained in @superchunk, instead?

It is very difficult to glean much more from the code, I am afraid. I apologize that I couldn't be more positive.

--rjray


In reply to Re: Breaking up large database by rjray
in thread Breaking up large database by Anonymous Monk

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.