use strict; use warnings; use List::Compare; my @symbol = ( [ 'a', 'b', 'c' ], [ 'a', 'b', 'c' ], [ 'a', 'b', 'c' ], [ 'c', 'd', 'e' ], ); my $lCmp = List::Compare->new(@symbol); my @unique = $lCmp->get_symmetric_difference (); my @union =$lCmp->get_union (); print "Unique: @unique\n"; print "Union: @union\n";
Prints:
Unique: d e Union: a b c d e
Update: completely missed the point!
In reply to Re: Efficient Unique Nested Combinations
by GrandFather
in thread Efficient Unique Nested Combinations
by FFRANK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |