RosettaCodeData/Task/Power-set/Perl/power-set-2.pl

5 lines
97 B
Perl
Raw Permalink Normal View History

2018-06-22 20:57:24 +00:00
use ntheory "forcomb";
my @S = qw/a b c/;
forcomb { print "[@S[@_]] " } scalar(@S);
print "\n";