#!/usr/bin/perl # http://perlmonks.org/?node_id=1212655 use strict; use warnings; my $draw = 2; my $from = 3; my $pattern = '(2+?)' x $draw; (2 x $from) =~ /^$pattern(??{print "@+[1..$draw]\n"})/;
In reply to Re: Which Permute or other module can give me all possible subsets of 6 numbers out of 40?
by tybalt89
in thread Which Permute or other module can give me all possible subsets of 6 numbers out of 40?
by Cody Fendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |