Hello,
I need to compare arrays in perl. Now the arrays are arrays of strings. The strings are similar to the following pattern:
user:user@machinename.domain.com
There are 4 machines.
M1
M2
M3
M4
There are 4 arrays and each with a bunch of users. some users appear on multiple machines. I need to look for any usernames that appear multiple times and eliminate the extras. the one that should remain is the one with the highest priority.
example:
if ben has accounts on M2 and M4, then eliminate ben:ben@M4.domain.com.