my @set = qw(A B C); my @list; foreach my $one (@set) { foreach my $two (@set) { push @list,"${one}$two"; } }
In reply to Re: Combinations of a set of elements
by dreadpiratepeter
in thread Combinations of a set of elements
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |