use warnings; use strict; for my $color (qw(red blue)) { for my $size (qw(sm med lrg)) { for my $num (1..4) { print "$color-$size-$num\n"; } } }
In reply to Re: Combinations / permutations... not even sure what this is called
by toolic
in thread Combinations / permutations... not even sure what this is called
by tunafish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |