in reply to More efficient way to get uniq list elements from list of lists

Whenever you want 'unique elements' you should immediately be thinking 'hash keys'.

my %hTemp; my @aTemp = map{@{$_}} ([1,2], [1,3], [2,3], [2,4], [3,4]); @hTemp{@aTemp} = (); print join ",",(sort keys %hTemp);
  • Comment on Re: More efficient way to get uniq list elements from list of lists
  • Download Code