in reply to Order-Preserving and Unique: List Cleanup
sub uniq { my %h; @h{@_} = (0..$#_); @_[ sort { $a <=> $b } values %h ] } [download]