blib/lib/Algorithm/perms.pl untested

filter: Statementstmt 0.0% 0 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 7 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Print all the permutations of the list (1..N), where N is specified on
2 # the command line.
3  
4 use Algorithm::FastPermute;
5  
6 my @array = (1..shift());
7 permute {
8 print "@array\n";
9 } @array;