@no_repeats = do { my %h; grep !$h{$_}++, @with_repeats };