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!
In reply to Re^4: retrieving in the correct order
by Anonymous Monk
in thread retrieving in the correct order
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |