I believe that one or both of your new arrays has undefined elements in it. Your hash lookup is the correct way to do this, and the relative sizes of the arrays don't matter. Try filtering out undefined elements from arrays if they are unavoidable from the data. @array = grep { defined } @array;
After Compline,
Zaxo
In reply to Re: Extracting elements in one array but not in another
by Zaxo
in thread Extracting elements in one array but not in another
by august3
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |