in reply to Re^4: retrieving in the correct order
in thread retrieving in the correct order

Yes, but are you loading @array2 with qq or qw? You must use qw if your code is anything like the above.

Try this: add the line print "There are ", scalar(@array2), " elements\n";right after you assign to it, and see if it has as many elements as you think it does.

Replies are listed 'Best First'.
Re^6: retrieving in the correct order
by Anonymous Monk on Dec 16, 2004 at 21:50 UTC
    Infact, I was not using either qq or qw - the values come from earlier in the script. I tried your test and the array has exactly the amount of elements that I thought.