RosettaCodeData/Task/Permutations/Perl/permutations-2.pl

6 lines
106 B
Perl
Raw Permalink Normal View History

2019-09-12 10:33:56 -07:00
use ntheory qw/forperm/;
my @tasks = (qw/party sleep study/);
forperm {
print "@tasks[@_]\n";
} @tasks;