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

Sorry,

I should have been more specific.

The two problems that you noticed are not problems in my program, just in the example I gave in my question.

With the code that you posted I don't get any error - but I don't get any output either ;-( The $key is definately picking up values (e.g. gi|14028145 |) so I think the problem is with substr. Also, the values of @array2 are present in @array1 as I have checked.

Hope you can help.

Thanks!

Replies are listed 'Best First'.
Re^5: retrieving in the correct order
by VSarkiss (Monsignor) on Dec 16, 2004 at 21:39 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.