in reply to Rename Duplicate List Elements in an Array

This problem is not that simple to solve. If you take

my @list = qw{ key value marker key key1 };
then the new list will have key1 twice.