example: List Guido bla1 ... Mike bla2 ... Klaus bla3 ... reference list Guido Meyer Mike Smith Klaus Rothschild so the new list should be Meyer bla1 ... Smith bla2 ... Rothschild bla3 ... I do it now, by putting the reference list in a hash and then I parse the list lane by lane, split the lane, exchange the identifier and write a new list