RosettaCodeData/Task/Combinations/Perl/combinations-2.pl

4 lines
104 B
Perl
Raw Permalink Normal View History

2015-02-20 00:35:01 -05:00
use Algorithm::Combinatorics qw/combinations/;
my @c = combinations( [0..4], 3 );
print "@$_\n" for @c;