# hand wavium prior to this line my %een=(); # keep track of values we have already seen @rray = grep !$een{$_}++ sort @rray;