# if I have: my @arr1 = qw(2 4 5); my @arr2 = ('1,nfs', '2,afp', '3,cifs', '4,dns', '5,backup'); #### # therefore from the above arrays I want to get: @arr3 = qw(afp dns backup);