@uniq = grep !$seen{ join '' , sort values %{ $_ } }++ , @list ;