jblock
11-13-2002, 11:14 PM
I need the perl code to -- for lack of a better word -- "subtract" one array from another, ie,
@array1 = (1, 2, 3, 4)
@array2 = (1, 2, 3, 4, 5, 6, 7, 8)
After "subtracting" a1 from a2, we get:
@array3 = (5, 6, 7, 8)
I have a feeling this is easy, but I'm a novice so I'm asking for help. thanks in advance!
@array1 = (1, 2, 3, 4)
@array2 = (1, 2, 3, 4, 5, 6, 7, 8)
After "subtracting" a1 from a2, we get:
@array3 = (5, 6, 7, 8)
I have a feeling this is easy, but I'm a novice so I'm asking for help. thanks in advance!