I need to compare arrays in perl. Now the arrays are arrays of strings. The strings are similar to the following pattern:
There are 4 machines.
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.
if ben has accounts on M2 and M4, then eliminate ben:ben@M4.domain.com.