> used it. what i dont get is "++$temp{$_} < 2," > > (this assumes @list has list that needs cleaning) > %temp = (); > @list = grep ++$temp{$_} < 2, @list;