http://qs321.pair.com?node_id=654029


in reply to Is there an easy way to assign guaranteed unique values to a simple array without looping through whole array?

if i understand correctly, you can do it with an intermediate hash and grep.
my %seen; my @nodupes = grep { not $seen{$_}++ } @mayhavedupes;
as for whether you consider grep "having to loop" or not, well, it's a lot less loopy than sorting keys...