in reply to Extracting elements in one array but not in another
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extracting elements in one array but not in another
by jdalbec (Deacon) on Oct 23, 2004 at 15:02 UTC |