SPUG: create a array which is XOR of two arrays

Sachin Chaturvedi sachin_chat at coolgoose.com
Mon Oct 23 00:41:23 PDT 2006

i have two arrays
@array1 = { t1, t2 , t3 }
@array2 = ( t1 , t2 , t5, t7, t8}
i want to create a new array which has all elements of array2 such that they
are not in array1.
i mean my final array should be
@final = {t5,t7,t8}

More information about the spug-list mailing list