in reply to Breaking up large database

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

Replies are listed 'Best First'.
Re: Re: Breaking up large database
by Brokensoulkeeper (Initiate) on Jul 16, 2002 at 15:52 UTC
    thanx :) i am happy that you are being blunt i am used to c++ and even that i havent programed in a year i posted it cause i cant find a debugger that will debug without running it i dont want to run it cause it might actuallly due part of it but there is no way for me to see the mistake until hours of work have gone by @trans is supposed to be a one entry array i want to take that one entry and put it in to 1 slot in superchunk i will redo code maybe get a bit more right and re post :)
      You might try the -c command line option:

      perl -c script.pl

      It will check your script's syntax without executing it.

      Cheers!

      Brent

      -- Yeah, I'm a Delt.