What I have found, (and what I always suspected) is that
code:

DIM $ARRAY[2]

$test=$ARRAY[2]



Will give an 'array reference out of bounds' error. This means that DIM $ARRAY[2] will give you only TWO records (these are 0 and 1 !) This is contradicting to what is said in the manual. (It states: A DIM $ARRAY[2] will give you three records 0, 1 & 2.)

To solve your problem you should add another 1 to the DIM. As you can see in my original script, I just DIM it with 10 to get around this problem.

P.S. Sorry for my late reply, One of our servers crashed. (I have to do some real work sometimes )

------------------
Greetz,

Roger the Young
------------------------
The code is out there...
------------------------

_________________________
The Code is out there