mountainbiker
Programmer
Lets say we have 5 arrays, i.e.,
@a1, @a2, @a3, @a4, and @a5
Each array contains a list of path/filename. Each array is sorted, so if arrays are the same each corresponding element are the same, e.g.,
$a4[1] eq $a5[1], $a4[2] eq $a5[2], and so on.
Problem:
I want to compare each array against the other, so I keep only one copy. The copy I want to keep has the higer number in its array name. For example,
if @a1, @a3, and @a5 are identical and @a2 and @a4 are identical--I would be left with @a4 and @a5. (The other arrays can just be set to ().)
@a1, @a2, @a3, @a4, and @a5
Each array contains a list of path/filename. Each array is sorted, so if arrays are the same each corresponding element are the same, e.g.,
$a4[1] eq $a5[1], $a4[2] eq $a5[2], and so on.
Problem:
I want to compare each array against the other, so I keep only one copy. The copy I want to keep has the higer number in its array name. For example,
if @a1, @a3, and @a5 are identical and @a2 and @a4 are identical--I would be left with @a4 and @a5. (The other arrays can just be set to ().)