Help for this page

Select Code to Download


  1. or download this
    use Algorithm::Loops qw( NextPermute );
    
    ...
    do {
       print(join(', ', @list), "\n");
    } while (NextPermute(@list));
    
  2. or download this
    There are 24 permutations of abcd, 4 taken at a time:
       abcd, abdc, acbd, acdb, adbc, adcb,
    ...
    There are  3 combinations of abcd, 3 taken at a time:
       abc, abd, acd, bcd