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

6 lines
106 B
Perl
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
use ntheory qw/forperm/;
my @tasks = (qw/party sleep study/);
forperm {
print "@tasks[@_]\n";
} @tasks;