in reply to Re^3: Upper limit on length of arrays accepted by Set::CrossProduct
in thread Upper limit on length of arrays accepted by Set::CrossProduct
#!/usr/bin/perl use Set::CrossProduct; my @arr; my @arr1 = 0..4; my @arr2 = 0..3; my @arr3 = 0..10; push(@arr,\@arr1); push(@arr,\@arr2); push(@arr,\@arr3); my $i = Set::CrossProduct->new(\@arr); print $i->cardinality, "\n"; while (my $a = $i->get) { print "@$a : "; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Upper limit on length of arrays accepted by Set::CrossProduct
by blazar (Canon) on Jan 30, 2008 at 13:21 UTC |